Da_HP_Geek
New Member
- Reaction score
- 8
Why wont this work? I bet that it is something with picked unit in my loop...
Trigger:
- Incarcerous
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Incarcerous
- Actions
- Set Caster_Point = (Position of (Triggering unit))
- Set Target_Point = (Target point of ability being cast)
- Custom script: set bj_wantDestroyGroup = true
- Unit Group - Pick every unit in (Units within (100.00 x (Real((Level of Incarcerous for (Triggering unit))))) of Target_Point matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
- Loop - Actions
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Caster_Point facing Default building facing degrees
- Unit - Set level of Dummy Ability for (Last created unit) to (Level of Incarcerous for (Triggering unit))
- Unit - Order (Last created unit) to Orc Raider - Ensnare (Picked unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Pause (Picked unit)
- Wait (1.25 x (Real((Level of Incarcerous for (Picked unit))))) seconds
- Unit - Unpause (Picked unit)
- Loop - Actions
- Custom script: call RemoveLocation( udg_Caster_Point )
- Custom script: call RemoveLocation( udg_Target_Point )
- Events