Skip to reading
PCA Script Programming

face_coordinates()

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 | Action ID: FaceCoordinates

Turn a character toward an explicit world position.

Source table from face_coordinates(), page 109
Option key / fieldMeaning and accepted 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. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
face_coordinates({"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.

hide_player_character()#

Hide Player Character | Action ID: HidePlayerCharacter

Hide or reveal the active player's visual representation.

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

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

Code example
hide_player_character({"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 109 of 357Permalink
Go to page