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

Difference between revisions of "setorigin"

From Quake Wiki

Line 1: Line 1:
 
Syntax:<br/>
 
Syntax:<br/>
<code>setorigin(entity e, vector vec)</code>
+
<code>void 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 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.

Revision as of 00:36, 25 March 2013

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