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!
Hi friends. I m with a doubt about visibility. In a part of a rpg map the player enters a cave. In this cave how can I change visibility. And if the player uses a item (torch) the visibility backs to normal. ty
Kinda sounds like you wanna change the vision range of the unit.
I don't recall if there's an action to do that, but try looking/searching in the editor.
There's API already implemented for that on versions 1.31+ one can now manipulate sight range on run-time through units field. You must use triggers for detecting if the unit acquires the torch (not sure if you're referring to use an item ability)
Definitely not a bad idea, but this wouldn't change his vision to be lower when entering a cave.
However, one could expand on this idea, by giving the units a standard vision range that corresponds to the vision in the cave, then give them an improved vision spell that is set to level 2 when outside (for "normal vision"), set to level 1 when in a cave (for "darkened vision") and then set to level 3 for when you're holding a torch inside a cave.
That way, you gain control over the vision field of the unit in versions prior to 1.31
For 1.31+ though, I guess one could just use the API.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.