B2. Skip button and reusable accent
On this page
skip_intro: normal skip request#
extends PCAScriptBasefunc run() -> void:
Runtime.cutscene_runner.skip()Assign skip_intro to the skip Button’s Click event. It respects the cutscene’s Skippable option.
cinematic_helpers: entry and exposed function#
extends PCAScriptBasefunc run() -> void:
await accent(0.35)func accent(power: float = 0.35) -> void:
await ZoomBlur({
"strength":power, "duration":0.6, "wait":false
})Run Script calls run(), which uses the default accent. To edit power on a cutscene event, expose accent as Camera Accent, with one float parameter named power and default 0.35. Choose Use Definitions, then select Call Script Function.
Adding parameters to the callable definition does not rewrite the code function. Keep the definition’s names, types and order aligned with the actual function.
