Skip to content

SayTask ​

Inherits: BehaviorTask < Resource

The NPC says a line or does an emote: the guard yawns while he idles, the merchant calls out his wares. The line goes to the players within the range of its channel (or the audience it names), and the NPC plays its animation and sound. See docs: Chat > Lines.

Properties ​

SpeechLineline
inttarget_unique_id0
floatwait_seconds0.0

Methods ​

voidexecute_task_start()

Property descriptions ​

Line

SpeechLine line ​

The line: the kind, the text (or an emote of the library), the animation, the sound and the audience

int target_unique_id = 0 ​

For an emote with a target: the unique id of whom it is done to. 0 = no target

Timing

float wait_seconds = 0.0 ​

Seconds the task lasts after the line (the animation plays out). 0 = the task is done at once

Method descriptions ​

void execute_task_start() ​

Starts the task.