Page 1 of 1
Argh, I don't even want to ask this....
Posted: Sun Jul 14, 2002 7:34 pm
by $nake
How do you make a door open when a switch is pressed?

I donno know if I am saying this right.
Posted: Sun Jul 14, 2002 7:56 pm
by Moal
Switch door
make a normal door
then hit n chose Not_Player and Targeted
give it key/value targetname door1
set angle
unselect
then right click (where you want trigger) and pick Tigger_Use
hit n
give it key/value target door1
unselect
Posted: Sun Jul 14, 2002 8:03 pm
by $nake

Sweet thanks dude, ill give it a shot after.
function rotating door
Posted: Sun Jul 14, 2002 9:48 pm
by tltrude
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.
Posted: Mon Jul 15, 2002 12:36 am
by Moal
script not needed in this instance
if you do what I posted above it will do it
!
Posted: Tue Jul 16, 2002 3:56 pm
by tltrude
Moal's way will work fine if you just want a fake button under the trigger.
Posted: Tue Jul 16, 2002 4:24 pm
by Moal
tltrude ways does make for a better looking switch with the anim