Arma 3 Scripting

Command in Conversations

kbTell

Also available as Markdown and JSON, or read the original wiki page.

Description

Make the person tell to the receiver the sentence. See Conversations for more details.

Syntax

person kbTell [receiver, topicName, sentenceClass, argumentArray1, argumentArray2, ..., forceRadio]

Parameters:

Returns: Nothing

Examples

Example 1

player kbTell [BIS_HQ, "myTopic", "playerSentence1"];

Example 2

player kbTell [
    BIS_HQ,                                        // to
    "Airstrike",                                // topic
    "AirstrikeRequest",                            // sentence
    ["Team", {}, "Anvil", ["Anvil"]],            // argument 1
    ["Location", {}, "Strelka", ["Strelka"]],    // argument 2
    true];                                        // use radio

in given .bikb:

class AirstrikeRequest 
{
    text = "%team requesting close air support at grid %location ";
    speech[] = { %Team, RequestingCloseAirSupportAtGrid, %Location };
    class Arguments 
    {
        class Team        { type = "simple"; };
        class Location    { type = "simple"; };
    };
};

Example 3

player kbTell [
    BIS_HQ,                                        // to
    "Airstrike",                                // topic
    "AirstrikeRequest",                            // sentence
    ["argumentName", argumentValue],            // argument 1
    true];                                        // use radio

Problems

Two units cannot talk on the same channel at the same time, this can lead to weird effects for non-local listeners; make sure not to use the same channel at the same time in multiplayer. Custom channels are considered as one channel for this matter.

See also

Conversations · kbAddTopic · kbHasTopic · kbReact · kbRemoveTopic · kbAddDatabase · kbAddDatabaseTargets · FSM · FSM Editor