{"name":"kbReact","operator":null,"title":"kbReact","type":"command","url":"https://community.bistudio.com/wiki/kbReact","revid":351315,"updated":"2023-11-27T04:58:35Z","groups":["Conversations"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"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.","syntaxes":[{"syntax":"person kbReact [receiver, topicName, sentenceID, argumentArray1, argumentArray2, ...]","since":null,"effect":null,"exec":null,"params":[{"name":"person","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"person: Object"},{"name":"receiver","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"receiver: Object"},{"name":"topicName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"topicName: String"},{"name":"sentenceID","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"sentenceID: String"},{"name":"argumentArrayN","type":"Array","optional":true,"default":null,"description":"in format [argumentName, argumentValue, argumentText, argumentSpeech]:\n- argumentName: String\n- argumentValue: Code\n- argumentText: String\n- argumentSpeech: Array of Strings - each string is an already defined word in config.","types":["Array"],"since":null,"text":"argumentArrayN: Array - (Optional) in format [argumentName, argumentValue, argumentText, argumentSpeech]:\n- argumentName: String\n- argumentValue: Code\n- argumentText: String\n- argumentSpeech: Array of Strings - each string is an already defined word in config."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"person","types":["Object"]},"right":{"text":"[receiver, topicName, sentenceID, argumentArray1, argumentArray2, ...]","types":["Array"]}}],"examples":[{"text":"```sqf\n// will trigger AS IF unit1 said the sentence (via kbTell)\n// unit2's FSM will react accordingly.\nunit1 kbReact [unit2, \"topicName\", \"speech1\"];\n```","code":["// will trigger AS IF unit1 said the sentence (via kbTell)\n// unit2's FSM will react accordingly.\nunit1 kbReact [unit2, \"topicName\", \"speech1\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Conversations","kbAddTopic","kbHasTopic","kbTell","kbWasSaid","kbRemoveTopic","kbAddDatabase","kbAddDatabaseTargets","FSM","FSM Editor"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Conversations","Introduced with Arma 2 version 1.00","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}