Gate Ability

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.
 

PooBucket

New Member
Reaction score
12
woops, messed up the code bit. But however, wellwisher, that's a good idea, if the trigger I do doesn't work i'll try the mass teleport even if it means me making another stupid dummy unit. I didn't think of that ^^. Mass Teleport targets a structure as well as the ground. So it should still work.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top