Need help setting up entities

Shadow Tyrant

L69: Deviant Member
Aug 7, 2009
69
3
Basically, what I want is this. I have a trigger_push that pushes people through and out a door. However, I only want the trigger_push to be active shortly before and after the door is open. So it goes like this:

Player reaches a certain point
trigger_push activates, pushing the player towards the door
Door opens, player is pushed through
trigger_push pushes them away from the door
Door closes, trigger push is deactivated.

I have no idea how to go about setting up the entities to do this. Any help is appreciated.
 

Waif

L7: Fancy Member
Mar 22, 2009
412
125
Is the door one way through?
If players can go either way though it will be a little more difficult to pull off.
 

Shadow Tyrant

L69: Deviant Member
Aug 7, 2009
69
3
Yeah, it's a one-way door. Which is why I need the trigger_push to be activated only when someone is about to go through the door, so people aren't pushed by it when no one is using it.
 

lucky

¯\_(ツ)_/¯
May 25, 2009
583
145
You need a trigger_push, a trigger_multiple, a door (brush), a door(prop).

trigger_multiple OnStartTouch -> door open
trigger_multiple OnEndTouch -> door open

trigger_multiple's delay before reset 1

the outputs go to the brush, and the prop is parented to the brush


edit:

for one way, have a two trigger_push s, one on each side of the door. Have the first trigger push always be on, and the other one be activated in the same way the door is opened, but by the first trigger_push
 
Last edited: