UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: Captain Zombie on May 11, 2018, 11:30:31 am

Title: play music or track
Post by: Captain Zombie on May 11, 2018, 11:30:31 am
Hi guys
I want script that when i go into Area that music or track play
Can you help me for this ?
Thanks  :)
Title: Re: play music or track
Post by: Tim Smith on May 11, 2018, 04:50:06 pm
Quote
I use _audio.csc and it works ok and is fairly easy to setup without any scripting.
Copy the header and an ambient alias from a zombie sound csv into a new csv. Electric or wind sounds are good examples to start with
Replace path with your sound. Convert your sound. Copy _audio.csc into your mods/mapname/clientscripts folder.
Open audio csc and there is 3 getstructarray parts.
They use a script_label kvp on script_ structs
Emitter
Looper
Random
And
Script_sound kvp for the sounds name.
I do all my sounds with script_label random and looper because emitters didn't work the way I expected.


Credit goes to Codmoddd1235