kbReact: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|M...) |
BrettMayson (talk | contribs) mNo edit summary |
||
(32 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
| | |game2= arma2oa | ||
|version2= 1.50 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
| | |gr1= Conversations | ||
|arg= global | |arg= global | ||
Line 13: | Line 19: | ||
|eff= local | |eff= local | ||
| 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. | |descr= 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. | ||
| person [[kbReact]] [receiver, topicName, sentenceID | |s1= person [[kbReact]] [receiver, topicName, sentenceID, argumentArray1, argumentArray2, ...] | ||
|p1= person: [[Object]] | |p1= person: [[Object]] | ||
|p2 | |p2= receiver: [[Object]] | ||
| | |p3= topicName: [[String]] | ||
| | |p4= sentenceID: [[String]] | ||
| | |p5= argumentArrayN: [[Array]] - (Optional) in format [argumentName, argumentValue, argumentText, argumentSpeech]: | ||
* argumentName: [[String]] | * argumentName: [[String]] | ||
* argumentValue: [[Code]] | * argumentValue: [[Code]] | ||
* argumentText: [[String]] | * argumentText: [[String]] | ||
* argumentSpeech: [[Array]] of [[String | * argumentSpeech: [[Array]] of [[String]]s - each string is an already defined word in config. | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf> | ||
// unit2's FSM will | // will trigger AS IF unit1 said the sentence (via kbTell) | ||
unit1 | // unit2's FSM will react accordingly. | ||
unit1 kbReact [unit2, "topicName", "speech1"]; | |||
</sqf> | |||
|seealso= [[Conversations]] [[kbAddTopic]] [[kbHasTopic]] [[kbTell]] [[kbWasSaid]] [[kbRemoveTopic]] [[kbAddDatabase]] [[kbAddDatabaseTargets]] [[FSM]] [[FSM Editor]] | |||
| [[Conversations]] | |||
}} | }} | ||
Latest revision as of 05:58, 27 November 2023
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: Object
- topicName: String
- sentenceID: String
- argumentArrayN: Array - (Optional) in format [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