Find out if target is location or unit

s3rius

Linux is only free if your time is worthless.
Reaction score
130
Hi, I'm trying to make a Flare Gun, which you can either fire into the air (as normal) or directly fire at an enemy to ignite him.
My problem is that I don't really know how to get to know if the target is a location or a unit.
Thanks for helpers :)
 
Reaction score
456
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        (Target unit of ability being cast) Equal to No unit
    Then - Actions
        -------- //It's location --------
    Else - Actions
        -------- //It's unit --------

That should do it.
 

s3rius

Linux is only free if your time is worthless.
Reaction score
130
Ah, didn't think about that way. Works fine. Thanks.
 
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