• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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:
 
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
 
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?
 
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.
Back
Top