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

[Trigger] Gate open and close commands?

Status
Not open for further replies.

evilancients1

E

evilancients1

I made triggers for all my gates that are pretty simple.

But if the gate is at half health and you open it, then close it, its back at full health. Same thing for when it dies. If you use the open or close commands it respawns.

I need to know how to fix this because it will be a real problem in my map.

Thanks in advance.
 
Can't you just store the gates hp before you open/close it and then set the gates hp to what you have stored?
Like this:
  • Events:
    • SOME EVENTS
  • Conditions:
    • SOME CONDITIONS
  • Actions:
    • Set hp = Get the gates hp
    • Destructible - Open/close gate
    • Destructible - Set the gates life to hp
 
Status
Not open for further replies.
Back
Top