![]() |
[SCRIPT] Cant get this music in map to wrok - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Cant get this music in map to wrok (/thread-12329.html) |
Cant get this music in map to wrok - jessehmusic - 01-04-2012 Hey i cant get this music to work ingame :S this is what i have in script for the sound "PlayMusic("ambience_voice.ogg", true, 3, 1, 0, true); StopMusic(1, int alPrio);" In the stopmusic i dont understand the last one any tip RE: Cant get this music in map to wrok - Statyk - 01-04-2012 (01-04-2012, 01:08 AM)jessehmusic Wrote: Hey i cant get this music to work ingame :SIt's the priority setting for the "PlayMusic"... In this case, it's priority is "0". Change it to something else like 5. For example, like this: PlayMusic("ambience_voice.ogg", true, 3, 1, 5, true); StopMusic(1, 5); RE: Cant get this music in map to wrok - Kurton - 01-04-2012 [edit: too late] RE: Cant get this music in map to wrok - jessehmusic - 01-04-2012 Got some error at 25,1 PHP Code: void OnStart() RE: Cant get this music in map to wrok - Statyk - 01-04-2012 AddCallback and syntax. void StopTimer(string &in asTimer){ PlayMusic("ambience_voice.ogg", true, 3, 1, 5, true); StopMusic(1, 5); } RE: Cant get this music in map to wrok - jessehmusic - 01-04-2012 How is that callback called Still new :S RE: Cant get this music in map to wrok - Statyk - 01-04-2012 (01-04-2012, 02:12 AM)jessehmusic Wrote: How is that callback called Still new :SJust put "void StopTimer(string &in asTimer)" above the "PlayMusic" functions... Play around and study a bit. Here is the FG wiki: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions?idx=hpl2%3Atutorials RE: Cant get this music in map to wrok - jessehmusic - 01-04-2012 Hmmm cant find ![]() |