kbReact: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[[a-zA-Z0-9 _-]+\|([a-zA-Z0-9_%*!=]+)\]\]([^<]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 41: | Line 41: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>// will trigger '''as if''' unit1 said the sentence (''via'' kbTell) | ||
// unit2's FSM will react accordingly. | // unit2's FSM will react accordingly. | ||
unit1 kbReact [unit2, "topicName", "speech1"];</ | unit1 kbReact [unit2, "topicName", "speech1"];</sqf> | ||
|seealso= [[Conversations]] [[kbAddTopic]] [[kbHasTopic]] [[kbTell]] [[kbWasSaid]] [[kbRemoveTopic]] [[kbAddDatabase]] [[kbAddDatabaseTargets]] [[FSM]] [[FSM Editor]] | |seealso= [[Conversations]] [[kbAddTopic]] [[kbHasTopic]] [[kbTell]] [[kbWasSaid]] [[kbRemoveTopic]] [[kbAddDatabase]] [[kbAddDatabaseTargets]] [[FSM]] [[FSM Editor]] | ||
}} | }} |
Revision as of 10:23, 13 May 2022
Description
- Description:
- Pass a non-verbal communication to the receiver. This command does as if the sentence was said and triggers the reaction scripts (AI FSM or player's conversation EH). See Conversations for more details.
- Groups:
- Conversations
Syntax
- Syntax:
- person kbReact [receiver, topicName, sentenceID(, argumentArray1, argumentArray2, …)]
- Parameters:
- person: Object
- [receiver, topicName, sentenceID, argumentArray1, argumentArray2, …]: Array
- receiver: Object
- topicName: String
- sentenceID: String
- argumentArray1toN (Optional): Array - [argumentName, argumentValue, argumentText, argumentSpeech]:
- Return Value:
- Nothing
Examples
- Example 1:
- // will trigger as if unit1 said the sentence (via kbTell) // unit2's FSM will react accordingly. unit1 kbReact [unit2, "topicName", "speech1"];
Additional Information
- See also:
- Conversations kbAddTopic kbHasTopic kbTell kbWasSaid kbRemoveTopic kbAddDatabase kbAddDatabaseTargets FSM FSM Editor
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