X0 i0 walkway

From NWN Lexicon

[edit] x0_i0_walkway

Include library holding the code for WalkWayPoints.

NOTE: This file includes x0_i0_spawncond .

[edit] Constants

Name Value Brief Description
NW_WALK_FLAG_BACKWARDS 0x00000008 Set when the creature is walking back.
NW_WALK_FLAG_CONSTANT 0x00000002

If set, the creature will walk its waypoints constantly, moving on in each OnPerception event.

NW_WALK_FLAG_INITIALIZED 0x00000001 If set, the creature's waypoints have been initialized.
NW_WALK_FLAG_IS_DAY 0x00000004 Set when the creature is walking day waypoints.
sWalkwayVarname NW_WALK_CONDITION


[edit] Functions

Name Brief Description

CheckWayPoints

Checks to see if an NPC has a valid waypoint to walk to.

GetIsPostOrWalking

Determine whether a creature has associated waypoints.
GetNearestWalkWayPoint Get the number of the nearest of the creature's current set of waypoints (respecting day/night).
GetNextWalkWayPoint Get 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.
GetWalkCondition Get whether the condition is set.
GetWaypointSuffix Get a waypoint number suffix, padded if necessary.
LookUpWalkWayPoints Look up the caller's waypoints and store them on the creature.
SetWalkCondition Set a given condition.

WalkWayPoints

Make an NPC creature walk a series of preset waypoints.



  author: Mistress

Personal tools
Categories