walkmove

From Quake Wiki

Revision as of 01:44, 26 March 2013 by Necros (talk | contribs) (Created page with "====Syntax:==== <code>float walkmove(float yaw, float dist)</code> Moves the entity referenced by self in the direction and distance specified. ====Parameters:==== :<code>yaw...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:[edit]

float walkmove(float yaw, float dist)

Moves the entity referenced by self in the direction and distance specified.

Parameters:[edit]

yaw - The direction that the entity will move in.
dist - The distance that the entity will move in.

Returns:[edit]

Returns TRUE if the movement completed successfully, and FALSE if it did not. The entity's position is reverted if the move is unsuccessful.

Other Details:[edit]

walkmove, unlike movetogoal, does not affect the entity's angles so, in the case of monsters, it causes them to slide around. Also unlike movetogoal, walkmove does not affect vertical position at all and will not match heights with enemies.