- Joined
- Sep 21, 2007
- Messages
- 517
ok basically what i want is to base a local sound off the traits of a global sound created in the sound editor. i noticed CreateSound() doesnt work with it, even if i use the "gg_snd_SOUNDNAME" as the file name, should i use
CreateSoundFromLabel() ?
i attempted it here, but i failed:
even the volume to be replicated/copied.
is the mistake from me or, does the function not work the way i thought it could?
btw yes it is a 3D sound, and a has a minimum range.
thanks for your time
CreateSoundFromLabel() ?
i attempted it here, but i failed:
JASS:
set atk = CreateSoundFromLabel("gg_snd_Shotgun", false, true, true, 10, 10)
call AttachSoundToUnit(atk, p)
call StartSound(atk)
call KillSoundWhenDone(atk)
even the volume to be replicated/copied.
is the mistake from me or, does the function not work the way i thought it could?
btw yes it is a 3D sound, and a has a minimum range.
thanks for your time