Skip to reading
PCA Script Programming

face_character()

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 Character | Action ID: FaceCharacter

Turn one character toward another.

Source table from face_character(), page 108
Option key / fieldMeaning and accepted inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
Face Character targetCharacterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank

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

Code example
face_character({"characterId": "player", "targetCharacterId": ""})

In use. Face Elias toward the player before his greeting. Select the acting character first and the target second. Turning alone does not bring them closer or guarantee a clear line of sight.

face_object()#

Face Object | Action ID: FaceObject

Turn a character toward a scene object.

Source table from face_character(), page 108
Option key / fieldMeaning and accepted inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
Object Room sceneIdChoose a scene ID.Blank
Object targetIdChoose an entity in the selected scene.Blank

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

Code example
face_object({"characterId": "player", "sceneId": "lab", "targetId": "archive_door"})

In use. Make the player face the signal lamp after using the lever. The target's position determines the facing direction; a large object's origin may not be the point you intended.

Page 108 of 357Permalink
Go to page