Skip to reading
PCA Script Programming

character_walk_path()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Character Walk Through Waypoints | Action ID: CharacterWalkPath

Walk through an array of waypoint references, optionally ignoring navigation.

Source table from character_walk_path(), page 104
Option key / fieldMeaning and accepted inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
Default Waypoint Room sceneIdChoose a scene ID.Blank
Waypoint IDs / Positions waypointIdsJSON array of waypoint references in travel order.[]
Speed speedMovement speed; 0 uses the normal movement speed where supported.0
Ignore Navigation Mesh ignoreNavigationUse the direct route instead of following normal navigation constraints.false

Timing. Runs the selected movement route.

Code example
character_walk_path({"characterId": "player", "sceneId": "lab", "waypointIds": []})

In use. Supply a JSON array of marker IDs in route order, then choose the walking speed. Use local, reachable markers for a first test. A list of display labels is not a list of the stored IDs.

Page 104 of 357Permalink
Go to page