Warcraft III resources & community, 2003–2006 · archived

help with opening/closing gates with 1 lever

11 posts
#1

help with opening/closing gates with 1 lever

I need help on opening/and closing gates using just one lever but make it a timed delay so after u close or open it u must wait (x) amount of secs to open/close it again could u help out with this trigger? like type down the Event: Conditions: Action: i've tried many things plz help.
#2
ive never used levers but i think i know how they work, so use:
Event: when [lever] dies
Actions: open the gate
wait (x) seconds
ressurect [lever]
#3
i've tried that but the problem with it is that, after it regens....if u hit it again, it only opens again, i cant seem to find the way to make one lever do both functions close and open
#4
You need to have a trigger that revives the lever, why not simply add an close-door-action there?
#5
you can do
open gate trigger
event: lever is attacked
action: open gate wait (x)seconds
turn on trigger close gate
turn off this trigger

close gate trigger
event: lever is attacked
action close gate wait (x)seconds
turn on trigger open gate
turn off this trigger

this trigger starts off by getting rid of the little check in the box of initially on at the top this will be turned on if the gate is opened and will turn off if gate is closed i hope this helps
#6
yes thank you that sounds lieit just might work lol i've been doin all types of triggers and not once thought of that ty soo much!
#7
nope prob. good luck!!!
#8
Several things:
1: Resurrection mainly refers to objects that don't come back. The only exception regarding a gate in that function is if something busts it open
2: The gate function says Open/Close Gate
3: If the lever is attacked, simply make it play its death animation, then reset it by Animation- Order Lever 000 to play its Stand. After this part, you would need a seperate trigger for each lever, unless your map makes sure you cannot manipulate the game by attacking multiple levers
#9
srry for not being perfect
#10
Actually Eursia Sir.Poopsalot's trigger worked fine, i added the lever regen trigger then after that all my levers work now and it wasn;t very time consumming either, so thx again sirpoopsslot you've been a great help!
#11
See Eusira gosh, and your welcome once agian