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

Difference between revisions of "setorigin"

From Quake Wiki

(Created page with "Syntax:<br/> <code>setorigin(entity e, vector vec)</code> Sets the entity <code>e</code> to the position specified with <code>vec</code>. This is the correct way of setting ...")
 
Line 3: Line 3:
  
 
Sets the entity <code>e</code> to the position specified with <code>vec</code>.  This is the correct way of setting an entity's position in the game.  Setting the <code>.origin</code> variable manually will cause problems with rendering.
 
Sets the entity <code>e</code> to the position specified with <code>vec</code>.  This is the correct way of setting an entity's position in the game.  Setting the <code>.origin</code> variable manually will cause problems with rendering.
 +
 +
 +
[[Category:QuakeC Function]]

Revision as of 00:19, 25 March 2013

Syntax:
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.