Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "Setorigin"

From Quake Wiki

(New page: void '''setorigin''' (entity ''e'', vector ''position'') e = entity to be moved ''position'' = new position for the entity Moves an entity to a given location. That function is to be u...)
 
(No difference)

Latest revision as of 20:33, 23 February 2008

void setorigin (entity e, vector position)

e = entity to be moved

position = new position for the entity

Moves an entity to a given location. That function is to be used when spawning an entity or when teleporting it. This is the only valid way to move an object without using the physics of the world (setting velocity and waiting). DO NOT change directly e.origin, otherwise internal links would be screwed, and entity clipping would be messed up.