- Joined
- May 9, 2008
- Messages
- 1,446
What shall I add and where in this trigger so the target units cant attack? Its an ensnare spell with AoE. I know that Cargo Hold do so a unit cant attack, but how to add the abillity to all in the group then and after that remove it?
-
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)
-
Loop - Actions
- Custom script: call RemoveLocation( udg_Caster_Point )
- Custom script: call RemoveLocation( udg_Target_Point )
-
Events