Movement, states, and control
On this page
PCA Script#
function run()
SetVoiceSpeaker({"characterId": "elias"})
PlayVoice({"voiceAssetId": "voice_elias_01", "wait": true})
SetVoiceSpeaker({"characterId": ""})
endBASIC#
FUNCTION Run()
AWAIT SetVoiceSpeaker({"characterId": "elias"})
AWAIT PlayVoice({"voiceAssetId": "voice_elias_01", "wait": true})
AWAIT SetVoiceSpeaker({"characterId": ""})
END FUNCTIONLua#
local Script = {}
function Script.run()
await(SetVoiceSpeaker({characterId = "elias"}))
await(PlayVoice({voiceAssetId = "voice_elias_01", wait = true}))
await(SetVoiceSpeaker({characterId = ""}))
end
return ScriptFor pause/seek controls in an existing GDScript sequence, the calls are await PauseVoice({}), await
SeekVoice({"seconds": 0.5}), and await ResumeVoice({}). Use them while a non-waiting voice is still active, not after the complete line has already finished.
The shared character actions also cover walking, following, facing, room changes, and player control. Configure states in Character Designer first, then use the relevant actions from the list/node picker.
Choose a real character and a reachable destination for Character Walk To. Use Follow Character and Stop Follow Character for a companion. Keep room transfers consistent with the single reusable-character placement rule. For a gesture, choose an animation/state that actually exists on the selected character.
Do not run a second lip-sync clock in a custom loop merely because a body animation is also playing. The built-in speech session already connects the recording, scene face, and portrait.
