kbTell: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
}} | }} | ||
<pre> | |||
// Example for kbTell with arguments, and Game-Logic as HQ. | |||
// 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"]; | |||
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]; | |||
</pre> | |||
<h3 style="display:none">Notes</h3> | <h3 style="display:none">Notes</h3> |
Revision as of 15:19, 29 March 2010
Description
- Description:
- Make the person tell to the receiver the sentence.
- Groups:
- Uncategorised
Syntax
- Syntax:
- person kbTell [receiver, topic, sentence id, [argument name, argument value, argument text, argument speech], ...{,forceRadio}]
- Parameters:
- person: Object
- [receiver, topic, sentence id, [argument name, argument value, argument text, argument speech], ...{,forceRadio}]: Array
- receiver: Object
- topic, sentence id, argument name: String
- argument value: Code
- argument text: String
- argument speech is an array of Strings, where each string is an already defined word in configs.
- forceRadio (optional): Boolean
- Return Value:
- Nothing
Examples
- Examples:
- Example needed
Additional Information
- See also:
- See also needed
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
// Example for kbTell with arguments, and Game-Logic as HQ. // 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"]; 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];