Posts: 189
Threads: 21
Joined: Apr 2011
Reputation:
0
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!
Posts: 2,992
Threads: 55
Joined: Feb 2011
Reputation:
114
self playlocalsound("name"); and maybe other variable, havent used it for long time
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
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.
Posts: 189
Threads: 21
Joined: Apr 2011
Reputation:
0
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 ?
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
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
Posts: 2,992
Threads: 55
Joined: Feb 2011
Reputation:
114
there is also self playloopsound("name");, to stop - self stoploopsound("name");