• 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 in a region?

Status
Not open for further replies.
Level 6
Joined
Nov 24, 2012
Messages
218
The answer would be yes it is possible.
I can give you an example but it's definitely not very efficient.
First, create a unit with a Grass/Shrub model.
Second, give it the "locust" ability so it is not clickable (now acts as a doodad).
Third, put the grass/shrubs around the map.
Fourth, make the trigger.

Here is a test map: --- To be updated ---

Edit: There are more sophisticated methods but with my way, once you are detected, everyone else will be able to see you due to the enemy's allied shared vision. We could do a bunch of locally coloring your unit 100% transparent and this and that and locally hiding yourself from mini-map to other players blah blah blah but I'd rather not.
 
Last edited:
Level 14
Joined
Oct 6, 2008
Messages
759
Hiding a unit does not remove it from the game. The unit will still autotarget enemies and attack/move. They won't be able to retaliate.


To efficiently make what you need create a unit and give it the enviroment model that blends, in this case the bush,high grass or whatever. Make the unit unselectable (locust, -1 to selection circle, or a simple trigger to unselect it when clicked uphon).

So:
1. Make grass-unit
2. Make it unselectable
3. Create a spell based of the Sorceres's invisibility.
4. Make a trigger when a unit comes in X range of the grass, cast invisibility on it. Duration of invisibility should be a lot.
5. Make a trigger when a unit leaves the range of the grass to remove the invisibility buff.
6. Have fun


p.s. To be able to see other invisible units while in bush , create a dummy with true sight the same way as above. Give it to entering player, kill it when he leaves the bush. (this might cause some problems if you got a invisible hero (e.g. twitch like) entering the bush while stealthed)
 
What I was trying to say is to just make the unit invisible while in the bush something like wind walk.


_____________
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)
______________

http://www.hiveworkshop.com/forums/...nits-invisible-while-hiding-bush-tree-200293/

I found this trigger but I don't know if its is ok to use.
 
Level 6
Joined
Nov 24, 2012
Messages
218
Finished test map. Blue is an enemy but you can control him to test the system.

There are lots of ways to go about it and this was my approach.

Sorry if it isn't to your liking.

I can recreate a better one using regions but that will require a lot of manual setup by the mapmaker.
 

Attachments

  • LoL Grass Invis.w3x
    36.4 KB · Views: 156
Last edited:
Status
Not open for further replies.
Top