GetIsPostOrWalking(object)

Determine whether a creature has associated waypoints.

int GetIsPostOrWalking(
    object oWalker = OBJECT_SELF
);

Parameters

oWalker

Creature to test for waypoints. (Default: OBJECT_SELF)


Description

Returns TRUE if the object has any post- or walk-waypoints associated with it. An associated post will have a tag composed of "POST_" followed by the creature's tag. Similarly, associated waypoints have tags composed as "WP_" + creature tag + "_NN", where 'NN' represents a sequential number indicating the position of the waypoint along the creature's path.



Remarks

The function name is a bit misleading. The creature need not be actually at its post, or actually walking its waypoints. As long as at least one waypoint with the correct tag exists, this function will return TRUE.


Requirements

#include "x0_i0_walkway"

Version

1.22

See Also

categories: Get Data from Creature Functions


 author: Jason Harris, editors: John Shuell, Mistress