Visible units

ianu74

New Member
Reaction score
8
Is there any way to track and see whether the unit is visible?
As in they are not covered by fog or invisible.
 

Bogrim

y hello thar
Reaction score
154
It depens on the purpose of your trigger. For invisible units, you can check for invisibility buffs and you can check if there is any reveal ability nearby.
 

roaaaarrrr

New Member
Reaction score
33
Not sure about GUI, but it definitely is in JASS. There is a function 'IsUnitVisible' that uses the parameters of

1) Which unit are you determining visibility for
2) Which player are you determing whether it is visible to
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
They're right there in the GUI - boolean comparison:
Trigger:
  • [...]
    • ((Triggering unit) is visible to Player 1 (Red)) Equal to True
    • ((Triggering unit) is fogged to Player 1 (Red)) Equal to True
    • ((Triggering unit) is masked to Player 1 (Red)) Equal to True
 
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