kbTell: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format (forceRadio is defined as optional -> no need for extra brackets))
(Moved example)
Line 29: Line 29:
|p10= forceRadio (optional): [[Boolean]] or [[Number]] or [[String]] - true/false to force use of radio, [[Number]] 1-10 to force use of custom radio channel, or [[String]] name of radio channel to use 'GLOBAL', 'SIDE', 'GROUP', 'VEHICLE', 'DIRECT', 'COMMAND'|= Parameter 10
|p10= forceRadio (optional): [[Boolean]] or [[Number]] or [[String]] - true/false to force use of radio, [[Number]] 1-10 to force use of custom radio channel, or [[String]] name of radio channel to use 'GLOBAL', 'SIDE', 'GROUP', 'VEHICLE', 'DIRECT', 'COMMAND'|= Parameter 10


| [[Nothing]] |= Return value
|x1= <code>// In Config file
____________________________________________________________________________________________
 
| [[kbAddTopic]], [[kbHasTopic]], [[kbRemoveTopic]]  |= See also
 
}}
<pre>
 
// Example for kbTell with arguments, and Game-Logic as HQ.
 
// In Config file
 
class CfgIdentities
class CfgIdentities
{
{
Line 52: Line 41:
};
};
};
};
// IN BIKB
// IN BIKB
class Sentences
class Sentences
{
{
Line 76: Line 63:


// In Script file
// In Script file
 
BIS_SSM_HQWEST = (createGroup west) createUnit ["Logic", [10,10,1000], [], 0, "NONE"];//Game Logic as HQ
BIS_SSM_HQWEST = (createGroup west) createUnit ["Logic", [10,10,1000], [], 0, "NONE"];
BIS_SSM_HQWEST setGroupId ["Headquaters", "SIX"];
BIS_SSM_HQWEST setGroupId ["Headquaters", "SIX"];
BIS_SSM_HQWEST setIdentity "SSMHQ_EN";
BIS_SSM_HQWEST setIdentity "SSMHQ_EN";
Line 83: Line 69:
player kbAddtopic["Airstrike", BIKB];
player kbAddtopic["Airstrike", BIKB];
BIS_SSM_HQWEST kbAddtopic["Airstrike", BIKB];
BIS_SSM_HQWEST kbAddtopic["Airstrike", BIKB];
player kbTell [BIS_SSM_HQWEST,"Airstrike","AirstrikeRequest", ["Team",{},"Anvil",["Anvil"]],["Location",{},"Strelka",["Strelka"]],true];</code> |= Example 1
player kbTell [BIS_SSM_HQWEST,"Airstrike","AirstrikeRequest", ["Team",{},"Anvil",["Anvil"]],["Location",{},"Strelka",["Strelka"]],true];
</pre>


| [[Nothing]] |= Return value
____________________________________________________________________________________________
| [[kbAddTopic]], [[kbHasTopic]], [[kbRemoveTopic]]  |= See also
}}
<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">

Revision as of 16:03, 26 March 2018


Hover & click on the images for description

Description

Description:
Make the person tell to the receiver the sentence.
Groups:
Uncategorised

Syntax

Syntax:
person kbTell [receiver, TopicName, SentenceClass, [argumentName, argumentValue, argumentText, argumentSpeech], ...,forceRadio]
Parameters:
person: Object
[receiver, TopicName, SentenceClass, [argumentName, argumentValue, argumentText, argumentSpeech], ...,forceRadio]: Array
receiver: Object
TopicName: String
SentenceClass: String
argumentName: String
argumentValue: Code
argumentText: String
argumentSpeech: Array of Strings - each string is an already defined word in configs.
forceRadio (optional): Boolean or Number or String - true/false to force use of radio, Number 1-10 to force use of custom radio channel, or String name of radio channel to use 'GLOBAL', 'SIDE', 'GROUP', 'VEHICLE', 'DIRECT', 'COMMAND'
Return Value:
Nothing

Examples

Example 1:
// In Config file class CfgIdentities { class SSMHQ { name = $STR_DN_WARFARE_HQ_BASE_UNFOLDED; face = "Face97"; glasses = "None"; speaker = "MaleA0EN"; pitch = 1.0; }; }; // IN BIKB class Sentences { 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";}; }; }; }; class Arguments{}; class Special {}; startWithVocal[] = {}; startWithConsonant[] = {}; // In Script file BIS_SSM_HQWEST = (createGroup west) createUnit ["Logic", [10,10,1000], [], 0, "NONE"];//Game Logic as HQ BIS_SSM_HQWEST setGroupId ["Headquaters", "SIX"]; BIS_SSM_HQWEST setIdentity "SSMHQ_EN"; player kbAddtopic["Airstrike", BIKB]; BIS_SSM_HQWEST kbAddtopic["Airstrike", BIKB]; player kbTell [BIS_SSM_HQWEST,"Airstrike","AirstrikeRequest", ["Team",{},"Anvil",["Anvil"]],["Location",{},"Strelka",["Strelka"]],true];

Additional Information

See also:
kbAddTopickbHasTopickbRemoveTopic

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on may 02, 2010 - 13:33 GMT+1
Lou Montana
Jezuro help on BIforum : [1]

Bottom Section