TeleportEntity Function

Teleports an entity.

void TeleportEntity(int entity, const float origin[3], const float angles[3], const float velocity[3])

Parameters

int entity

Client index.

const float[3] origin

New origin, or NULL_VECTOR for no change.

const float[3] angles

New angles, or NULL_VECTOR for no change.

const float[3] velocity

New velocity, or NULL_VECTOR for no change.

Errors

Invalid entity or client not in game, or lack of mod support.