ActionRandomWalk()

Causes the subject to walk to a random location close to itself.

void ActionRandomWalk();

Description

The action subject will generate a random location near its current location and pathfind to it. This behavior will continue every so often until cancelled with a ClearAllActions() command.
No return value, but if an error occurs the log file will contain "ActionRandomWalk failed."



Remarks

ActionRandomWalk never ends meaning that it is necessary to call the ClearAllActions function in order to stop it. The subject will not stray far from the location where it was when this function is called.


Version

1.61

See Also

functions: WalkWayPoints
categories: Action on Object Functions | Core AI Functions | Movement Functions


 author: Ryan Hunt, editor: Charles Feduke, additional contributor(s): Adrian McKenzie, Jaxon, LoCash