kbReact: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 37: Line 37:
unit1 [[kbReact]] [unit2, "topicName", "speech1"];</code>
unit1 [[kbReact]] [unit2, "topicName", "speech1"];</code>


| [[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 00:49, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Conversations

Syntax

Syntax:
Syntax needed
Parameters:
person: Object
[receiver, topicName, sentenceID, argumentArray1, argumentArray2, …]: Array
receiver: Object
topicName: String
sentenceID: String
argumentArray1toN (Optional): Array - [argumentName, argumentValue, argumentText, argumentSpeech]:
  • argumentName: String
  • argumentValue: Code
  • argumentText: String
  • argumentSpeech: Array of Strings - each string is an already defined word in config.
Return Value:
Return value needed

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