dialogue.say

Section: Dialogue

What it does

dialogue.say takes speaker, text and duration. duration is optional.

The API says: one-shot popup

Signature

dialogue.say(speaker, text, duration?)

Arguments

  • speaker
  • text
  • durationoptional

Example · generated

function start() {  dialogue.say(1, 'Hello');}

dialogue.say is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.

7 members in dialogue