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

Camouflage

Status
Not open for further replies.
Level 2
Joined
Mar 9, 2006
Messages
14
How can i make a specific unit-type to turn invisible (hide) when he is near a bush (actual name Shrub) or a tree, like in DotA one of the heroes turns invisible when he is near a tree.
 
Level 2
Joined
Mar 5, 2006
Messages
16
You could err make lots of regions on top of the shrubs and then do trigerred events where if a certain unit enters the region it makes them invisible somehow. Maybe you can look at the trigger file in the dota map?
 
Level 5
Joined
Nov 21, 2005
Messages
100
Sounds like you need a loop, which counts the number of destructibles in a circle around the hero (Only counting trees) every second. If this number is greater than 1, give him permanant invisiblity, if not, remove it.
 
Level 2
Joined
Mar 9, 2006
Messages
14
ikarsik said:
You could err make lots of regions on top of the shrubs and then do trigerred events where if a certain unit enters the region it makes them invisible somehow. Maybe you can look at the trigger file in the dota map?

first of all if i do a trigger on every shrub the map size will get very big.
And you can't open DotA in world editor, it's protected.
 
Status
Not open for further replies.
Top