Add Waypoints and paths: Difference between revisions
Jump to navigation
Jump to search
Created page with "Refer also to: NPC Behaviour page, where the waypoints data model is explained." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Refer also to: [[NPC Behavior Data Structures|NPC Behaviour page]], where the waypoints data model is explained. | Refer also to: [[NPC Behavior Data Structures|NPC Behaviour page]], where the waypoints data model is explained. | ||
==== Extending an existing path network ==== | |||
If you want to extend the path network in a certain direction, do this: | |||
0) Define the format of the new waypoint name: | |||
/path format Ghosts_{0} | |||
1) Walk on top of an existing waypoints and then use | |||
/path start 0.5 | |||
You have to be within 2 meters of the waypoint you want to start with. The 0.5 will be the radius of the waypoint, if you don't specify it the radius will be 2 meters. | |||
2) Create new points with | |||
/path point add | |||
3) Stop the new path and create a waypoint at the end with | |||
/path stop 0.5 | |||
Same as for start, the 0.5 will be the radius of the waypoint, if you don't specify it the radius will be 2 meters. | |||
Latest revision as of 17:33, 8 November 2026
Refer also to: NPC Behaviour page, where the waypoints data model is explained.
Extending an existing path network
If you want to extend the path network in a certain direction, do this:
0) Define the format of the new waypoint name:
/path format Ghosts_{0}
1) Walk on top of an existing waypoints and then use
/path start 0.5
You have to be within 2 meters of the waypoint you want to start with. The 0.5 will be the radius of the waypoint, if you don't specify it the radius will be 2 meters.
2) Create new points with
/path point add
3) Stop the new path and create a waypoint at the end with
/path stop 0.5
Same as for start, the 0.5 will be the radius of the waypoint, if you don't specify it the radius will be 2 meters.