Coop teleport

Avatar
Mr. P. Kiwi
97 Posts
Posted Oct 11, 2011
I'm trying to make a brush entity that when Atlas touches it it will teleport him, and when P-body touches it it will teleport him to a different location. I'm trying to reverse engineer the new dlc lobby but it's really messy and hard to understand. Anyone knows what entities should I use and how?
Advertisement
Registered users don’t see ads! Register now!
Avatar
spongylover123
944 Posts
Posted Oct 11, 2011
Replied 1 hour later
There's an entity that teleports clients but not blue or orange
trigger_teleport

Theres a console command for teleporting orange and blue though
ent_teleport blue or ent_teleport red
They will teleport anywhere your cross in the middle is pointing at
Not crosshair.

Avatar
Skotty
671 Posts
Posted Oct 11, 2011
Replied 28 minutes later
Use a "trigger_playerteam" and use the "OnStartTouchBluePlayer" and "OnStartTouchOrangePlayer" to activate trigger_teleports. One for blue and one for orange. Don't forget to let the teleports disabled after they OnEndTouched the trigger_playerteam.
Advertisement
Registered users don’t see ads! Register now!
Avatar
Mr. P. Kiwi
97 Posts
Posted Oct 11, 2011
Replied 3 hours later

Skotty wrote:
Use a "trigger_playerteam" and use the "OnStartTouchBluePlayer" and "OnStartTouchOrangePlayer" to activate trigger_teleports. One for blue and one for orange. Don't forget to let the teleports disabled after they OnEndTouched the trigger_playerteam.

Thanks, but why should I disable the teleport?

EDIT: Never mind, I got why and it works perfectly.

Thanks a lot