x0_i0_walkway

Include library holding the code for WalkWayPoints.

NOTE: This file includes x0_i0_spawncond.

Constants

NameValueBrief Description
NW_WALK_FLAG_BACKWARDS0x00000008Set when the creature is walking back.
NW_WALK_FLAG_CONSTANT0x00000002If set, the creature will walk its waypoints constantly, moving on in each OnHeartbeat event. Otherwise, it will walk to the next only when triggered by an OnPerception event.
NW_WALK_FLAG_INITIALIZED0x00000001If set, the creature's waypoints have been initialized.
NW_WALK_FLAG_IS_DAY0x00000004Set when the creature is walking day waypoints.
sWalkwayVarnameNW_WALK_CONDITION

Functions

NameBrief Description
CheckWayPointsChecks to see if an NPC has a valid waypoint to walk to.
GetIsPostOrWalkingDetermine whether a creature has associated waypoints.
GetNearestWalkWayPointGet the number of the nearest of the creature's current set of waypoints (respecting day/night).
GetNextWalkWayPointGet the creature's next waypoint. If it has just become day/night, or if this is the first time we're getting a waypoint, we go to the nearest waypoint in our new set.
GetWalkConditionGet whether the condition is set.
GetWaypointSuffixGet a waypoint number suffix, padded if necessary.
LookUpWalkWayPointsLook up the caller's waypoints and store them on the creature.
SetWalkConditionSet a given condition.
WalkWayPointsMake an NPC creature walk a series of preset waypoints.


  author: Mistress