Skip to reading
PCA Script Programming

follow_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

Follow Character | Action ID: FollowCharacter

Start one character following another with a chosen spacing and speed.

Source table from follow_character(), page 107
Option key / fieldMeaning and accepted inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
Character to Follow targetCharacterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
Distance Behind distanceNumber; decimals allowed.0
Speed speedMovement speed; 0 uses the normal movement speed where supported.0

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

Code example
follow_character({"characterId": "player", "targetCharacterId": "", "distance": 0})

In use. Have Elias follow the player at about 1.5 units. It starts a continuing behavior; the next list instruction need not wait for a final destination. Stop the follower before a staged conversation if both actors must hold their marks.

stop_follow_character()#

Stop Follow Character | Action ID: StopFollowCharacter

Stop the chosen character's follow behavior.

Source table from follow_character(), page 107
Option key / fieldMeaning and accepted inputDefault
Character characterIdChoose 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
stop_follow_character({"characterId": "player"})

In use. Call it before walking an NPC to a specific scene marker. It stops the following relationship; it does not remove the character or disable future movement commands.

Page 107 of 357Permalink
Go to page