-
Notifications
You must be signed in to change notification settings - Fork 8
LPathFollower
Nak edited this page May 13, 2022
·
1 revision
LPathFollower is a custom object to hold PathFind results. The idea is that these can be used on multiple NPC's, unlike PathFollower.
Both NNN and NodeGraph returns this object.
Move Enums ( NN recreates these 4 on the client )
CAP_MOVE_GROUND = 0x01 -- walk/run
CAP_MOVE_JUMP = 0x02 -- jump/leap
CAP_MOVE_FLY = 0x04 -- can fly, move all around
CAP_MOVE_CLIMB = 0x08 -- climb ladders
Note: You can combine these with
bit.bor( CAP_MOVE_GROUND, CAP_MOVEJUMP, CAP_MOVE_CLIMB )
Functions | Returns | Description |
---|---|---|
LPathFollower | Creates an empty path-follower with a starting position. |
Functions | Returns | Description |
---|---|---|
Vector | Returns the starting position of the path | |
Vector | Returns the ending position of the path (Note, will update if the target is an entity) | |
Number | Returns the age of the path. | |
Resets the age of the path. | ||
Number | Returns the length of the path | |
Adds a segment | ||
Table | Returns the first segment. | |
Table | Returns the last segment | |
Table | Returns the closest sequence. | |
Table | Returns all segments. | |
Vector | Returns the closest position along the path to said position. | |
Vector | Returns the position on the path by given distance | |
Number | Returns the distance from the path. | |
Invalidates the path | ||
Boolean | Returns true if the path is valid |
Cursor Functions | Returns | Description |
---|---|---|
Number | Returns the cursor progress along the path. | |
Moves the cursor to the start of the path. | ||
Moves the cursor to the end of the path. | ||
Moves to cursor to the said distance ahead. | ||
Moves the cursor to said distance. |
- BitBuffer
- BSP Parser
- DateTime and Date-Functions
- TimeDelta
-
PathFinding (Coming soon)
- LPathFollower (Coming soon)
- NodeGraph (Coming soon)
- NikNav ( NikNaks Navigation ) on ToDo
- Extended functions (Coming soon)