- Joined
- Aug 12, 2008
- Messages
- 350
Just a simple question I would like to ask here. I using the same point which is temp_point for both triggers as shown below. Will it be a problem? Or will it cause a bug or etc.?
-
Dying Effects
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Dying unit)) Not equal to Mystic Mage
-
Actions
- Set temp_point = (Position of (Dying unit))
- Special Effect - Create a special effect at temp_point using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation (udg_temp_point)
-
Events
-
Spawning
-
Events
- Time - Every 6.00 seconds of game time
- Conditions
-
Actions
- Set temp_point = (Position of Mystic_Mage)
- Set temp_point2 = (temp_point offset by (Random real number between 300.00 and 500.00) towards (Random angle) degrees)
- Unit - Create 1 DemonSpawn[DemonLevel] for Neutral Hostile at temp_point2 facing Default building facing degrees
- Unit - Order (Last created unit) to Attack Mystic_Mage
- Custom script: call RemoveLocation (udg_temp_point2)
- Custom script: call RemoveLocation (udg_temp_point)
-
Events