Skip to reading
GDScript Programming & Godot

AddDestinationPath()

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
On this page
Code example
AddDestinationPath(x: Variant, y: Variant = null, z: Variant = null,
ignore_navigation_mesh_rules: bool = false)

Queue a Vector3/XYZ destination. A Vector3 plus Boolean second argument can specify navigation override.

ClearDestinationPath()#

Code example
ClearDestinationPath()

Clear this character’s queued destinations.

WalkPath()#

Code example
WalkPath(speed: float = 0.0)

Await walking the queued path.

walkpath()#

Code example
walkpath(speed: float = 0.0)

Lowercase compatibility alias for WalkPath.

WalkTo()#

Code example
WalkTo(position_value: Variant, speed: float = 0.0, ignore_navigation: bool = false)

Await walking to coordinates. Unlike the high-level target-object action, this method converts a position value.

Teleport()#

Code example
Teleport(position_value: Variant)

Move to coordinates without navigating there.

ChangeRoom()#

Code example
ChangeRoom(room_id: String, position_value: Variant = null, spawn_point_or_edge: String = "",
facing: Variant = null)

Move this character to a room via the character-room route; active-player and NPC handling can differ.

Page 227 of 378Permalink
Go to page