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

Is there a way to save the life of something?

Status
Not open for further replies.
Level 3
Joined
Nov 3, 2005
Messages
26
Like a gate for example. In one of my maps, i have some gates in it that the other team needs to destroy to win, but the team that controls them can just open and close them, and thus, healing them. I am hoping to be able to save the life of the gate as it gets damaged and if its closed again, it sets it back to what it was at before. I thought that maybe some variables and some tricky triggering would be able to do it, but I havnt figured it out yet. I dont even know if its possible :(
 
Level 3
Joined
Nov 3, 2005
Messages
26
I already knew that, what I meant was...

How do I set the life of the gate as its attacked to a variable, so that when its closed again, it will set it to that variable.
 
Level 3
Joined
Nov 3, 2005
Messages
26
thanks

Thanks alot, it worked :D
I really feel stupid that I didn't think of that, but what can you do, lol

Thanks again ^_^
I really appreciate it!!
 
Status
Not open for further replies.
Top