• 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.

[General] Regional Invisibility

Status
Not open for further replies.
Level 4
Joined
Nov 17, 2015
Messages
91
Hi! I'd like to know how to give someone invisibility if they Enter a region? Then make them lose it instantly upon leaving it? Pictures are appreciated. Thanks in advance!!! :goblin_good_job:
 

ILH

ILH

Model Reviewer
Level 34
Joined
May 8, 2012
Messages
1,579
Create a unit group variable, call it for example "InvsGroup"
then do these
  • Enter
    • Events
      • Unit - A unit enters Invisible <gen>
    • Conditions
      • (Level of Ghost for (Triggering unit)) Equal to 0
    • Actions
      • Unit - Add Ghost to (Triggering unit)
      • Unit Group - Add (Triggering unit) to InvsGroup
  • Leave
    • Events
      • Unit - A unit leaves Invisible <gen>
    • Conditions
      • ((Triggering unit) is in InvsGroup) Equal to True
    • Actions
      • Unit - Remove Ghost from (Triggering unit)
      • Unit Group - Remove (Triggering unit) from InvsGroup
 
Level 12
Joined
May 22, 2015
Messages
1,051
Create a unit group variable, call it for example "InvsGroup"
then do these
  • Enter
    • Events
      • Unit - A unit enters Invisible <gen>
    • Conditions
      • (Level of Ghost for (Triggering unit)) Equal to 0
    • Actions
      • Unit - Add Ghost to (Triggering unit)
      • Unit Group - Add (Triggering unit) to InvsGroup
  • Leave
    • Events
      • Unit - A unit leaves Invisible <gen>
    • Conditions
      • ((Triggering unit) is in InvsGroup) Equal to True
    • Actions
      • Unit - Remove Ghost from (Triggering unit)
      • Unit Group - Remove (Triggering unit) from InvsGroup

What do you need the unit group for? Seems like it is not used for anything in those triggers. Am I missing something?
 
Level 4
Joined
Nov 17, 2015
Messages
91
Create a unit group variable, call it for example "InvsGroup"
then do these
  • Enter
    • Events
      • Unit - A unit enters Invisible <gen>
    • Conditions
      • (Level of Ghost for (Triggering unit)) Equal to 0
    • Actions
      • Unit - Add Ghost to (Triggering unit)
      • Unit Group - Add (Triggering unit) to InvsGroup
  • Leave
    • Events
      • Unit - A unit leaves Invisible <gen>
    • Conditions
      • ((Triggering unit) is in InvsGroup) Equal to True
    • Actions
      • Unit - Remove Ghost from (Triggering unit)
      • Unit Group - Remove (Triggering unit) from InvsGroup

Thanks aton!!! :goblin_good_job:
 
Status
Not open for further replies.
Top