Hi, i would like to know how to setup a door with path corner,
that only opens when u pressed 2 buttons {script_trigger} :oops:
Help, scripting door with 2 buttons
999apple
(999apple)
#1
999apple
(999apple)
#3
Very usefull lol, read i dont need a single button door that easy, i need a door that only opens if 2 buttons are triggerd -.-
S14Y3R
(S14Y3R)
#4
k, try this: (with your lack of information…i’ll assume you’re using either a func_invisible_user or func_button for your switches, and assuming you don’t mean to activate buttons simultaneously, and also assuming you’re using a script_mover as your door)
there’s many way’s to go about it, but due to lack of info this is basic starting point…
button_1
{
spawn
{
wait 250
accum 1 set 0
}
activate axis //depending on which team is supposed to activate
{
accum 1 inc 1
accum 1 abort_if_not_equal 1 // prevents retriggering
trigger door open_check
}
activate allies //depending on which team is supposed to activate
{
accum 1 inc 1
accum 1 abort_if_not_equal 1 // prevents retriggering
trigger door open_check
}
}
//=============
button_2
{
spawn
{
wait 250
accum 1 set 0
}
activate axis //depending on which team is supposed to activate
{
accum 1 inc 1
accum 1 abort_if_not_equal 1 // prevents retriggering
trigger door open_check
}
activate allies //depending on which team is supposed to activate
{
accum 1 inc 1
accum 1 abort_if_not_equal 1 // prevents retriggering
trigger door open_check
}
}
//==============
door
{
spawn
{
wait 250
accum 1 set 0
}
trigger open_check
{
accum 1 inc 1
accum 1 abort_if_not_equal 2 //won't call open_door if not called by each button once
trigger door open_door
}
trigger open_door
{
faceangles 0 90 0 500 wait //or gotomarker path_corner 500 wait depending on your door
//wm_announce "door's now open"
}
}
that should be a good starting point. If not, provide more info.
999apple
(999apple)
#7
Yep, fate i had a prefab but with some kinda retard crusher, i needed a door
“btw SOLVED”
999apple
(999apple)
#8
Nope slayer, it has to be gone like,
trigger level1_done
{
accum 1 abort_if_not_equal 3
wm_announce "^<1st ^7door is opening^<!"
wait 4000
trigger level1_done_door1 true
trigger level1_done_door2 true
}
I solved it already,
But thnx anyway =)
i thought you had the perfab? Seems like i was wrong ^^