32 Camera scripts in all four languages
All four scripting languages use the same action properties. These examples set the targets and blend to an existing conversation camera. Put the code in the language’s normal script record and call the script from an event.
# GDScript
func run(_context: Dictionary = {}) -> Variant:
await SetCameraTargets({
"cameraId":"conversation",
"targetId":"player", "targetIds":"elias"
})
return await ActivateCamera({
"cameraId":"conversation",
"duration":1.2, "wait":true
})function run()
SetCameraTargets({"cameraId":"conversation","targetId":"player","targetIds":"elias"})
ActivateCamera({"cameraId":"conversation","duration":1.2,"wait":true})
endThe second example is PCA Script. Replace IDs with your own. A display label such as Conversation (conversation) is not the ID string to paste into code. Use conversation.
