Dialogue - Theseus-Aegis/MissionTemplate GitHub Wiki
This page will explain the usage of the Dialogue function. Note; this does not include any kind of sound files. Only text on-screen.
/*
* Author: Mike
* On-screen text mimicking speech.
*
* Call only locally on one machine.
*
* Arguments:
* 0: Person Speaking <STRING>
* 1: Message <STRING>
* 2: Colour (Hex code) <STRING> (optional - default: #FFFFFF)
* 3: Fade in Time <NUMBER> (optional - default: 1)
*
* Colours are:
* White - #fffffff
* Black - #000000
* Blue - #0000ff
* Red - #ff0000
* Yellow - #ffff00
* Green - #00e600
*
* Return Value:
* None
*
* Example:
* ["John James", "I hate all of you.", "#fffffff", 3] call MFUNC(dialogue)
*/
This function will display text on-screen to mimick speech. It requires a speaker and speech with optional colour and how long it remains on screen. Colour schemes are listed above as hex codes.
If this is called via an ACE action then use the first example. If it's called from a trigger globally use the second example.
Example 1:
["John James", "I hate all of you.", "#FFFFFF", 3] call TAC_Mission_fnc_dialogue;
Example 2:
["John James", "I hate all of you.", "#FFFFFF", 3] call TAC_Mission_fnc_dialogueLocal;