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:====
 
<code>void 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.
 
+
====Parameters:====
 +
:<code>e</code> - The entity who's origin to set
 +
:<code>vec</code> - The new vector coordinates of the entity
 +
====Returns:====
 +
:void
  
 
[[Category:QuakeC Function]]
 
[[Category:QuakeC Function]]

Revision as of 00:51, 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.

Parameters:

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

Returns:

void