Skip to reading
PCA Script Programming

Paths, following and record methods

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

Earlier edition reference / Current 0.86.4.0 property paths > p. 329

The parser also supports the following readable movement patterns. A marker can be a valid object/spawn reference or a suitable vector position. Use the catalog action functions when you need every optional movement setting.

Source table from Paths, following and record methods, page 305
PatternMeaning
player walks to archive_doorNavigate to an object/character target.
move elias to vector3(2, 0, -1)Move/teleport to a position; not a navigated walk.
player walks through marker1, marker2Walk a specified path of targets.
add waypoint marker1 to playerQueue a waypoint.
clear waypoints for playerClear that actor’s queued waypoints.
player walks waypointsWalk the queued route.
elias follows playerStart character following.
elias stops followingStop character following.
wait until elias animation endsWait for a finite animation to complete.

The direct method API consists of say, walk_to, change_room and play_animation on character references; objects/triggers expose play_animation. This is the complete direct record-method list for this PCA build, not a subset of a larger Godot Node API.

Code example
function run()
    characters.elias.say("Follow me.")
    characters.elias.walk_to(objects.archive_door)
    characters.elias.play_animation("nod")
end

change_room routes the active game’s ChangeScene action. To move an NPC to another room while play stays where it is, use move_npc_to_room. It is unsafe to infer NPC-transfer behavior just from calling the method on an NPC reference.

Page 305 of 357Permalink
Go to page