- Joined
- Feb 1, 2013
- Messages
- 5
Hi, I have some questions about triggering.
1.) Does this leaks? Then what is it? I confused with "unit in range" function that maybe can cause leaks to my map.
2.) I managed to play custom sound when a unit casts a spell. Then I have 3 instance of that unit and I use the spell together, and the problem comes! The sound just plays once and not 3 times. How to fix it?
Here are my questions, and thanks for your help
1.) Does this leaks? Then what is it? I confused with "unit in range" function that maybe can cause leaks to my map.
-
Test
-
Events
- Unit - A unit Dies
- Conditions
-
Actions
- Set TempPoint = (Position of (Dying unit))
- Set TempUnitGroup = (Units within 512.00 of TempPoint)
-
Unit Group - Pick every unit in TempUnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an enemy of (Owner of (Dying unit))) Equal to True
-
Then - Actions
- Unit - Cause (Dying unit) to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Universal
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation( udg_TempPoint)
- Custom script: call DestroyGroup( udg_TempUnitGroup)
-
Events
-
Playing CustomSound
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Mighty Roar
-
Actions
- Set TempPoint = (Position of (Triggering unit))
- Set Sound_Roar = Mighty_Roar <gen>
- Sound - Play Sound_Roar at 100.00% volume, located at TempPoint with Z offset 0.00
- Custom script: call RemoveLocation( udg_TempPoint)
-
Events