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

[Trigger] Gate open and close commands?

Status
Not open for further replies.
Level 2
Joined
Sep 13, 2008
Messages
8
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.
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
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.
Top