setorigin

From Quake Wiki

Syntax:[edit]

void setorigin(entity e, vector vec)

Sets the entity e to the position specified with vec. This is the correct way of setting an entity's position in the game. Setting the .origin variable manually will cause problems with rendering.

Parameters:[edit]

e - The entity who's origin to set
vec - The new vector coordinates of the entity

Returns:[edit]

void