Questions about gate

C

Castreal

Guest
I created a gate that can be open and closed through text commands of -open and -close. But when the gate is destroyed or opened when damage, typing -close brings back the gate with full hp. Is there a way to make it such that the gate does not revive when it's dead?

Thank you very much for ur help ^^
 

Tamisrah

Active Member
Reaction score
16
Just check for the hitpoints of the gate before you open/close it and if it's already destroyed cancel the command.
If I get you there correctly that the hp of the gate are resetted by opening the door you'll have to save the hp in a variable to restore them after closing the door again.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top