Warcraft III resources & community, 2003–2006 · archived

Camouflage

7 posts
#1

Camouflage

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.
#2
Swing your magic wand!
#3
ragingspeedhornSwing your magic wand!


huh? what do you mean?
#4
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?
#5
He's mocking you. (or however you spell that)
#6
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.
#7
ikarsikYou 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.