- Joined
- Aug 12, 2008
- Messages
- 350
In the trigger below, the event and conditions has been specified through the GUI Event by Magtheridon96 so I'm sure that wasn't the problem for this spell. The problem for this spell is that although there are 3 same type of enemies around the caster, only a single enemy is knockback.
EDIT: I attached a Demo map for whoever trying to help me.
Solved
-
Power Stomp
- Events
- Conditions
-
Actions
- Set tempUnit = (Triggering unit)
- Set tempPoint = (Position of tempUnit)
-
Unit Group - Pick every unit in (Units within 300.00 of tempPoint matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of tempU and do (Actions)
-
Loop - Actions
- Set tempUnit2 = (Picked unit)
- Set tempPoint2 = (Position of tempUnit2)
- Set tempReal = (325.00 - (Distance between tempPoint and tempPoint2))
- -------- ---------------------------------------------------------------------------------------------------------------- --------
- Set KBA_caster = tempUnit
- Set KBA_target = tempUnit2
- Set KBA_distance = tempReal
- Set KBA_effects = Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
- Trigger - Run Knockback Cast <gen> (checking conditions)
- -------- ---------------------------------------------------------------------------------------------------------------- --------
- Custom script: call RemoveLocation (udg_tempPoint2)
-
Loop - Actions
- Custom script: call RemoveLocation (udg_tempPoint)
Solved
Attachments
Last edited: