Pathfinding
Create characters and direct their navigation.
Feature: Pathfinding
What do you want to do?
llCreateCharacter(list options)Converts the linkset containing the script into a pathfinding character entity (required to use pathfinding functions) using the specified options.llNavigateTo(vector pos, list options)Directs a pathfinding character to navigate to the position pos (located in the current or adjacent regions) using the parameters specified in options.llPatrolPoints(list patrolPoints, list options)Directs a pathfinding character to patrol sequentially through the coordinates specified in patrolPoints, configured by options.llExecCharacterCmd(integer command, list options)Sends a command (specified by command) to the pathing system with options. Currently only supports stopping pathfinding or making the character jump.Reference
15 topic entries
llCreateCharacter(list options)functionConverts the linkset containing the script into a pathfinding character entity (required to use pathfinding functions) using the specified options.
llDeleteCharacter()functionConverts the linkset back to a standard physical object, removing all pathfinding properties.
llEvade(key target, list options)functionDirects a pathfinding character to evade target, attempting to hide from its pursuer if a hiding spot is available (i.e., no line of sight from the character's head to the pursuer's head, and no direct path on the navmesh).
llExecCharacterCmd(integer command, list options)functionSends a command (specified by command) to the pathing system with options. Currently only supports stopping pathfinding or making the character jump.
llFleeFrom(vector position, float distance, list options)functionDirects a pathfinding character to keep the specified distance from the target position vector (within the region or adjacent regions).
list llGetClosestNavPoint(vector point, list options)functionReturns a list containing the closest vector position on the navigation mesh (navmesh) to the specified point (expressed in region-local space), or an empty list if none is found. Configured using options.
list llGetStaticPath(vector start_pos, vector end_pos, float radius, list params)functionReturns a list of position vectors representing pathfinding waypoints between start and end on the static navmesh for a character of the specified radius. Ignores movable obstacles and can be used in any region regardless of dynamic pathfinding status.
llNavigateTo(vector pos, list options)functionDirects a pathfinding character to navigate to the position pos (located in the current or adjacent regions) using the parameters specified in options.
llPatrolPoints(list patrolPoints, list options)functionDirects a pathfinding character to patrol sequentially through the coordinates specified in patrolPoints, configured by options.
llPursue(key target, list options)functionDirects a pathfinding character to pursue and chase target, configured by the parameters specified in options.
llUpdateCharacter(list options)functionUpdates settings for a pathfinding character using the parameters specified in options.
llWanderWithin(vector origin, vector dist, list options)functionDirects a pathfinding character to wander around a central coordinate origin, restricted within the bounding distance limits of dist and configured by options.
moving_start()eventTriggered whenever the physical or moving object containing the script starts moving.
moving_end()eventTriggered whenever the physical or moving object containing the script stops moving.
path_update(integer type, list reserved)eventTriggered to inform the script of changes or failures in the pathfinding character's status.
No matching entries. Try a different term or filter.