kbReact: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 13: | Line 12: | ||
|eff= local |Effects in MP= | |eff= local |Effects in MP= | ||
| 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. |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. |DESCRIPTION= | ||
| person [[kbReact]] [receiver, topicName, sentenceID(, argumentArray1, argumentArray2, …)] |SYNTAX= | | person [[kbReact]] [receiver, topicName, sentenceID(, argumentArray1, argumentArray2, …)] |SYNTAX= | ||
Line 42: | Line 39: | ||
unit1 [[kbReact]] [unit2, "topicName", "speech1"];</code> |EXAMPLE1= | unit1 [[kbReact]] [unit2, "topicName", "speech1"];</code> |EXAMPLE1= | ||
| [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbTell]], [[kbWasSaid]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] |SEEALSO= | | [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbTell]], [[kbWasSaid]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] |SEEALSO= | ||
}} | }} | ||
Revision as of 01:36, 17 January 2021
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:
- ConversationskbAddTopickbHasTopickbTellkbWasSaidkbRemoveTopickbAddDatabasekbAddDatabaseTargetsFSMFSM 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