- Joined
- Dec 19, 2007
- Messages
- 1,234
Trigger:
Problam: I do not want to summon the new units for "netural hostile" but to the owner of the trap.
"Triggering unit" = the one activating the trap.
" ???? " = the trap which the unit came closer to.
-
Camera Traps
-
Events
-
Unit - A unit comes within 300.00 of Lazer Wall Trap 0005 <gen>
-
Unit - A unit comes within 300.00 of Lazer Wall Trap 0304 <gen>
-
Unit - A unit comes within 300.00 of Lazer Wall Trap 0355 <gen>
-
Unit - A unit comes within 300.00 of Lazer Wall Trap 0348 <gen>
-
Unit - A unit comes within 300.00 of Lazer Wall Trap 0385 <gen>
-
Unit - A unit comes within 300.00 of Lazer Wall Trap 0380 <gen>
-
Unit - A unit comes within 300.00 of Lazer Wall Trap 0381 <gen>
-
-
Conditions
-
(Player number of (Owner of (Triggering unit))) Less than or equal to 5
-
((Triggering unit) is A Hero) Equal to True
-
-
Actions
-
Set p = (Position of (Triggering unit))
-
Special Effect - Create a special effect at p using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Create 1 (Random level (Hero level of (Triggering unit)) creep unit-type) for Neutral Hostile at p facing (Random angle) degrees
-
Unit - Order (Last created unit) to Attack (Triggering unit)
-
Custom script: call RemoveLocation(udg_p)
-
-
Problam: I do not want to summon the new units for "netural hostile" but to the owner of the trap.
"Triggering unit" = the one activating the trap.
" ???? " = the trap which the unit came closer to.