locking doors
PanFrie
04-21-2005, 03:47 PM
how can i make it so when i press a button, it locks a door?
BasieP
04-21-2005, 05:05 PM
try an env_state and name the env_state 'state' or something
then make a button_target that triggers the 'state'
the you make master of the func_door the 'state' and then it should work
josh_u[RR]
04-21-2005, 05:06 PM
do you want it passable otherwise?
try this:
name the door. set a trigger_multiple outside the door with the door as its target. as long as the trigger_multiple is active, the door will open normally.
make your func_button with its target the trigger_multiple. the button will deactivate the trigger_multiple effectivly locking your door.
you could get real fancy and set up 2 trigger_multiples, one on each side of the door that are activated by different buttons. then you could end up having the door passable one direction but not the other, or both :D
BasieP
04-21-2005, 05:07 PM
Originally posted by josh_u[RR]
do you want it passable otherwise?
try this:
name the door. set a trigger_multiple outside the door with the door as its target. as long as the trigger_multiple is active, the door will open normally.
make your func_button with its target the trigger_multiple. the button will deactivate the trigger_multiple effectivly locking your door.
you could get real fancy and set up 2 trigger_multiples, one on each side of the door that are activated by different buttons. then you could end up having the door passable one direction but not the other, or both :D
why a trigger multple if you only gonne trigger one thing?
josh_u[RR]
04-21-2005, 05:10 PM
multiple refers to the # of times it can be triggered I believe. trigger_once is the other trigger entity.
killer tomato
04-21-2005, 05:17 PM
correct ;)
BasieP
04-21-2005, 05:43 PM
my way doesn't work anyway, because the door doesn't lock when triggered
PanFrie
04-21-2005, 11:42 PM
thanks guys
Day of Defeat Forum Archive created by
Neil Jedrzejewski.
This in an partial archive of the old Day of Defeat forums orignally hosted by
Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.