Skip to reading
PCA Script Programming

add_character_waypoint()

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 Waypoints: Add Waypoint | Action ID: AddCharacterWaypoint

Append one destination to a character's waypoint queue.

Source table from add_character_waypoint(), page 102
Option key / fieldMeaning and accepted inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
Waypoint Room sceneIdChoose a scene ID.Blank
Waypoint / Object (optional) waypointIdChoose an entity in the selected scene. May be blank.Blank
XYZ when no waypoint positionDestination/placement coordinates as [X, Y, Z].[0.0, 0.0, 0.0]
Ignore Navigation Mesh ignoreNavigationUse the direct route instead of following normal navigation constraints.false

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
add_character_waypoint({"characterId": "player", "sceneId": "lab", "waypointId": ""})

In use. Add three named markers around the room, then call Character Walk Waypoints. Ignore Navigation permits a direct route; keep it off for ordinary floor walking so obstacles and walkable areas remain meaningful.

Page 102 of 357Permalink
Go to page