Argh, I don't even want to ask this....
Moderator: Moderators
Argh, I don't even want to ask this....
How do you make a door open when a switch is pressed?
I donno know if I am saying this right.
Ravir's Target Range (Server IP: 207.246.199.220) - Home of FLARE - Server:
Ravir's Target Range (Server IP: 207.246.199.220) - Home of FLARE - Server:
function rotating door
The function doors have builtin triggers, so I guess you want to know how to add a working switch.
$door1:
$door1_trigger waittill trigger
$door1_switch anim turn
$door1_switch anim waittill animdone
wait 2
$door1_switch anim on
$door1_switch anim waittill animdone
end
Basically, the rotating elevator switch has three animations; off, on, and turn, but off and on do the same thing. In your map you will have to make the door a target of the trigger and turn off its builtin trigger (read the gray box when you hit key N). Also put "setthread" with a value of "door1" in the trigger enitity properties to call for the above thread.
Good luck.
$door1:
$door1_trigger waittill trigger
$door1_switch anim turn
$door1_switch anim waittill animdone
wait 2
$door1_switch anim on
$door1_switch anim waittill animdone
end
Basically, the rotating elevator switch has three animations; off, on, and turn, but off and on do the same thing. In your map you will have to make the door a target of the trigger and turn off its builtin trigger (read the gray box when you hit key N). Also put "setthread" with a value of "door1" in the trigger enitity properties to call for the above thread.
Good luck.
