Skip to content

CinematicAction ​

Inherits: EventAction < Resource

Action to play or stop a video cinematic Uses UIContainer.cinematic_player (VideoStreamPlayer) Pauses all game audio during playback

Properties ​

CinematicCommandcommandCinematicCommand.PLAY
VideoStreamvideo_stream
boolwait_for_completiontrue

Methods ​

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

Enumerations ​

enum CinematicCommand ​

The options of cinematic command: play, stop.

  • PLAY = 0
  • STOP = 1

Property descriptions ​

CinematicCommand command = CinematicCommand.PLAY ​

Command to execute (play or stop)

VideoStream video_stream ​

Video stream to play (only used when command is PLAY)

bool wait_for_completion = true ​

Whether to wait for the video 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