PooBucket
New Member
- Reaction score
- 12
Same as atreyu's
Code:
Gate
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Gate
Actions
Set GateCaster = (Triggering unit)
Set Gate_Caster_Position = (Position of GateCaster)
Set GateTarget = (Target unit of ability being cast)
Set Gate_Target_Position = (Position of GateTarget)
Set Temp_Group = (Units within 500.00 of Gate_Caster_Position matching ((((Matching unit) is A structure) Equal to False) and (((Picked unit) belongs to an ally of (Owner of GateCaster)) Equal to True)))
Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
Set Temp_Picked = (Picked unit)
Unit - Move Temp_Picked instantly to Gate_Target_Position
Custom script: call DestroyGroup (udg_Temp_Group)
Custom script: call RemoveLocation (udg_Gate_Target_Position)
Custom script: call RemoveLocation (udg_Gate_Caster_Position)/[code]
There it is, last time I tested it with just matching unit is a structure, it didn't work, nothing happened.