ItsMods

Full Version: Playing Sounds
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How i can play sounds into the game ? And can i use all sounds that i can find into the iwds ? Because i have convert all sounds from iwds to my computer and so i can hear all and test which i like!
self playlocalsound("name"); and maybe other variable, havent used it for long time
self playsoundtoplayer("soundname", self);

^ plays a sound to a player and only they hear it


self playsoundatposition("soundname", self.origin);

^ plays sound at your origin and everyone can hear it pending on the sound type / volume / fade

self playsoundatposition("soundname", 123.4, 1232.2,-402.1);

for coords, i think thats right from memory, if not search it, its something close to that.
hmm ok, where must i put it ? i put it on oneplayerspawned because it shoud play at start of round but it dosent! And there i can find the sounds i can play ?
look in the sound aliases in mod tools... and it should work, obviously you have the wrong sound name.. some sound files dont play..


self playSoundToPlayer("mpl_turret_alert", self);


try using that
Ok i will try it later! Then i post my result Smile
there is also self playloopsound("name");, to stop - self stoploopsound("name");