• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Spell] How to make a custom gate that can open and close?

Status
Not open for further replies.
Level 6
Joined
Jul 8, 2018
Messages
129
I've been trying to make a buildable gate that you can open/close but I have no idea on how to make it open or close. How do you make a custom spell to make it do that??? Or do you make something else for it to do that???
 
Level 9
Joined
Apr 23, 2011
Messages
527
There's an action under Destructible along those lines.
  • Destructible - Open/Close <gate>
If it's player-controlled open/close:

Create 2 units with the same model. One gate is closed with a pathing map, and another gate is opened with no pathing map and units can walk freely.

Create an dummy ability based on Channel (say, the ability is for Open). Detect if a unit casts the dummy ability, replace the ability with another dummy (for Close) and then replace the gate unit with the other version.
 
Status
Not open for further replies.
Top