Keycard door

Dodo

Tank
Joined
Aug 30, 2004
Messages
2,140
Reaction score
0
I'm trying to make a door that opens when you hold a func_physbox (looking like a keycard) near to a controle panel nexto the door.
The only big problem I'm bumping into is that a can't find a way to trigger a "trigger_once" with a func_physbox.
How would you do it ?

-dodo

edit:
nevermind, i got the basics working !!

I made a brush as a trigger_proximity entity called "trigger" with the flags put on phys_objects and the filter name set on "filter".

Then i put a filter_activator_name called "filter" as an entity in the map.
Set the filter name to "keycard".

Now it only needed a brush as func_physbox called "keycard" acting as the keycard. *drumroll* *ting*

Holding the physbox keycard into the trigger the trigger checks the filter_activator_name if its the physbox called "keycard" your holding into it.
Then in the outputs of the trigger you can do whatever you want like...

Object Properties: trigger - trigger_proximity
OnStartTouch > sound > PlaySound
 
name the func_physbox and then use a filter_activator_name (name may be different, I'm a tad rusty here) to specify only it activating. Then make sure that the trigger properties only allows physobjects to trigger it.
 
Back
Top