• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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