Detecting target type

Centreri

New Member
Reaction score
1
I have a basic ability that switches the positions of the caster and another unit, and I want to expand its function to if the target is a point instead of the unit, just teleport the caster.

So, how do I word the conditions such that it does X if the target is a point and Y if the target is a unit?
 

C0mput3r

New Member
Reaction score
20
Well i think you need to make 2 different triggers.
One: Event: A unit is issued an order targeting a point.
Actions:set tmpPoint = point of ability being cast.
Move unit instantly to tmpPoint
call RemoveLocation(udg_tmpPoint)

Two: Event: A unit is issued an order targeting a object.
Actions: Switch the units ....
 

Metov

New Member
Reaction score
4
or you could try basing it off channel, setting allowed target to point/unit target.

then in the trigger use both position of target unit of ability, and point of ability being cast.

only the valid one should 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