Skip to content

CutsceneAction ​

Inherits: EventAction < Resource

Action to play or stop an in-game cutscene Uses UIContainer.cutscene_container (InGameCutScenePlayer) Pauses all game audio during playback

Properties ​

CutsceneCommandcommandCutsceneCommand.PLAY
PackedScenecutscene_scene
boolwait_for_completiontrue

Methods ​

Stringget_function_description()
Dictionarysave()
voidload_data( data: Dictionary )

Enumerations ​

enum CutsceneCommand ​

The options of cutscene command: play, stop.

  • PLAY = 0
  • STOP = 1

Property descriptions ​

CutsceneCommand command = CutsceneCommand.PLAY ​

Command to execute (play or stop)

PackedScene cutscene_scene ​

Cutscene scene to play (only used when command is PLAY, must be InGameCutScenePlayer)

bool wait_for_completion = true ​

Whether to wait for the cutscene to finish before completing action (only used when command is PLAY)

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary