So if i want to play a sound for several, but no all players (for a team of players), do I have to create several integers & defining the same sound for every integer?
Defining the same sound in different integers wont work! In the following example only Player(1) will hear a sound:
local integer i_SoundType = DefineSound("Sound\\Ambient\\DoodadEffects\\SargerasLaugh.wav", 3326, false, false)
local integer i_SoundType2 = DefineSound("Sound\\Ambient\\DoodadEffects\\SargerasLaugh.wav", 3326, false, false)
call RunSoundForPlayer( i_SoundType, Player(1) )
call RunSoundForPlayer( i_SoundType2, Player(0) )
Ah, read a bit through the library...
i will use a "RunSound" for local player like risingdusk did for playing the sound for 1 player (at the end of his library "SoundUtils")!