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
08-09-2011, 23:07
(This post was last modified: 08-09-2011, 23:08 by koil.)
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 ?
08-09-2011, 23:28
(This post was last modified: 08-10-2011, 00:18 by koil.)
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
there is also self playloopsound("name");, to stop - self stoploopsound("name");