- Joined
- Jul 28, 2013
- Messages
- 768
Hello guys, i'm using custom sounds and the problem is that i want the sounds to be heard if they are only in the player's camera range, else you stop hearing them ( just like the default abilities' sounds).
I uploaded the sound that i want to use and i tried this trigger. The problem is that the sound is heard throughout the entire map not in the area where it's being cast.
Cast Sound
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Crap
Actions
Set TempPointSS = (Position of (Target unit of ability being cast))
Sound - Play Crap_Sound <gen> at 100.00% volume, located at TempPointSS with Z offset 0.00
Custom script: call RemoveLocation( udg_TempPointSS )
I uploaded the sound that i want to use and i tried this trigger. The problem is that the sound is heard throughout the entire map not in the area where it's being cast.
Cast Sound
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Crap
Actions
Set TempPointSS = (Position of (Target unit of ability being cast))
Sound - Play Crap_Sound <gen> at 100.00% volume, located at TempPointSS with Z offset 0.00
Custom script: call RemoveLocation( udg_TempPointSS )