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

How to make units invisible while hiding in a bush/tree?

Status
Not open for further replies.
Level 6
Joined
Sep 19, 2007
Messages
215
Well I'm making map n I need help with something I'm sure most of you have played league of lengends well for my map I want the feature where they hide in the bush n enemys can't see them unless they are in a bush as well is there anyway to do this plz help
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
You would need to make a custom spell based on Invisibility (change the duration to 99999 seconds). You would also need a region over every area of bush. Here is what your triggers could look like:

  • Unit Enters Bushes
    • Events
      • Unit - A unit enters [Your Region]
    • Conditions
      • [Your Conditions Here]
    • Actions
      • Unit - Create 1 Dummy for (Owner of (Entering unit)) at (Position of (Entering unit)) facing...
      • Unit - Add [custom invisibility spell] to (Last created unit)
      • Unit - Order (Last created unit) to Human Sorceress - Invisibility (Entering unit)
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
  • Unit Leaves Bushes
    • Events
      • Unit - A unit leaves [Your Region]
    • Conditions
      • [Your Conditions Here]
    • Actions
      • Unit - Remove [your invisibility buff] buff from (Leaving unit)
Hope this helped :thumbs_up:
Just ask if you need more help!

Mr_Bean
 
Level 6
Joined
Sep 19, 2007
Messages
215
Will my allies be able to see me n enemies won't see my guy that way even if they come in bush
 
@Mr_Bean987 Your trigger leaks and isn't made for dynamic spell since you the region at the constant position location. Creating a dummy is completely not needed, since there is already Permanent Invisible ability, and therefore makes things easier to do. Further more, what I get from this explanation is that units inside can do whatever they want and invisibility does not break unless they leave the bush - if it's normal invisible they will break as soon as unit start any action.

@4rankie
It's quite complicated because of idea inside the bush and sharing vision between ally-enemy. I can take this as request, but will do tomorrow since I don't have editor around. How the bush is created? It's just standard ward-summoning?
 
Level 6
Joined
Sep 19, 2007
Messages
215
Well I am not at home either so well basicly around the map are placed tall grass n wheb unit walks in it if enemy is beside the bush he can't see you but if he walks in n can attack u its mainly for ganks sneak attacks, only allies can see u in it without being in bush with u
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Easiest way would be to make the border with some form of widget with a high occlusion height (or whatever it is called). That way it would act as a barrier for normal line of sight until a unit walks past it.
As far as I can remember, both units (buildings) and destructables has this feature to block LoS.
 
Status
Not open for further replies.
Top