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

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