Skip to reading
GDScript Programming & Godot

FaceCoordinates()

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

Face Coordinates

Turn a character toward an explicit world position.

Source table from FaceCoordinates(), page 119
Option key / fieldMeaning and inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
XYZ positionDestination/placement coordinates as [X, Y, Z].[0.0, 0.0, 0.0]

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await FaceCoordinates({"characterId": "player", "position": [0.0, 0.0, 0.0]})

In use. Use a position near the door handle when the door model's origin is unhelpful. In a 3D scene, provide X, Y and Z. This is a facing target, not a rotation triplet.

HidePlayerCharacter()#

Hide Player Character

Hide or reveal the active player's visual representation.

Source table from FaceCoordinates(), page 119
Option key / fieldMeaning and inputDefault
Hidden hiddenWhether the quest or player visual should be hidden for this action.true

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await HidePlayerCharacter({"hidden": true})

In use. Hide the player during a first-person inspection and reveal them on exit. Hiding the model is not an input lock and does not, by itself, stop the player moving.

Page 119 of 378Permalink
Go to page