• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Unit visibility

Status
Not open for further replies.
Level 6
Joined
Sep 17, 2005
Messages
276
here are the triggers, one for share vision one for deactivating:

Code:
>1st trigger:

Events
    Unit - A unit Begins construction

Conditions
    (Constructing structure) Equal to No unit

Actions
    Player Group - Pick every player in (All players) and do (Actions)
        Loop - Actions
            Unit - Grant shared vision of (Constructing structure) to (Picked player)


>2nd trigger:

Events
    Unit - A unit Dies

Conditions
    (Dying unit) Equal to No unit

Actions
    Player Group - Pick every player in (All players) and do (Actions)
        Loop - Actions
            Unit - Deny shared vision of (Dying unit) to (Picked player)



thats all. if you have more units than one that should share vision, just remove the condition and put an if-then-else action before the actions above. if somethin is still unclear, post again and i give you the trigger for that too. :wink:
 
Status
Not open for further replies.
Top