News:

Come Chat with us live! Learn how HERE!

Main Menu

teleport

Started by infestor1, May 10, 2009, 03:28:22 AM

infestor1

How would I create a command that would teleport the target to a predefined place in the map?

It would be used like this:

!base [USER] [TEAM]

It would teleport the user ([USER]) to their team's ([TEAM]) base.

I just need to know how to teleport a player to a position, and how to make it teleport the given player.

THANKS!

doublehex

look at setviewpos command in src/game/g_cmds. c

pretty much just this line:   TeleportPlayer( ent, origin, angles );

ent is obviously the entity, origin is the x, y, z, angle is the orientation

infestor1

Oh, thanks so much!

This worked well!

Thank you!