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

walkmove

From Quake Wiki

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

float walkmove(float yaw, float dist)

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

Parameters:

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

Returns:

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:

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.