Skip to content

PlayVoiceLineAction ​

Inherits: EventAction < Resource

Speaks a voice line: a character of the voice lines and a file (empty = a random line of the character). It plays on the Voice bus, in the voice language of the player (the file of the same name in the language folder), and shows its subtitle while the player has subtitles on. Where it is heard from: the NARRATOR (a voice over, heard from nowhere, 2D: a cutscene, a popup), an ENTITY (the line comes from that entity and follows it), or a POSITION (a point of the world, 3D). Use it to speak a line with an event.

Properties ​

SFXSelectionvoice_line
PlaceplacePlace.NARRATOR
intspeaker_entity_unique_id0
Vector3positionVector3.ZERO
boolwait_until_finishedfalse

Methods ​

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

Enumerations ​

enum Place ​

Where the line is heard from

  • NARRATOR = 0
  • ENTITY = 1
  • POSITION = 2

Property descriptions ​

SFXSelection voice_line ​

The voice line to speak (a VoicelineSFXSelection: the character and the file)

Place place = Place.NARRATOR ​

Where it is heard from: the Narrator (from nowhere, 2D), an Entity (by its unique id) or a Position of the world (3D)

int speaker_entity_unique_id = 0 ​

The unique id of the entity that speaks (Entity). If the entity is not in the world the line is heard as the Narrator

Vector3 position = Vector3.ZERO ​

The point of the world the line is heard from (Position)

bool wait_until_finished = false ​

The action completes when the line is over (the next action of the event waits for it)

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