{"name":"kbWasSaid","operator":null,"title":"kbWasSaid","type":"command","url":"https://community.bistudio.com/wiki/kbWasSaid","revid":330038,"updated":"2022-08-15T15:23:07Z","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":null,"server_exec":false},"exec":null,"description":"Check if given item was said by person to someone. See Conversations for more details.","syntaxes":[{"syntax":"person kbWasSaid [receiver, topic, sentenceID, maxAge]","since":null,"effect":null,"exec":null,"params":[{"name":"person","type":"Object","optional":false,"default":null,"description":"who said the item","types":["Object"],"since":null,"text":"person: Object - who said the item"},{"name":"receiver","type":"Object","optional":false,"default":null,"description":"receiver of the sentence","types":["Object"],"since":null,"text":"receiver: Object - receiver of the sentence"},{"name":"topic","type":"String","optional":false,"default":null,"description":"name of the topic used in kbAddTopic","types":["String"],"since":null,"text":"topic: String - name of the topic used in kbAddTopic"},{"name":"sentenceID","type":"String","optional":false,"default":null,"description":"id of sentence that we want to check","types":["String"],"since":null,"text":"sentenceID: String - id of sentence that we want to check"},{"name":"maxAge","type":"Number","optional":false,"default":null,"description":"time in seconds. kbWasSaid will check whether the sentence was said in last **max. age** seconds","types":["Number"],"since":null,"text":"maxAge: Number - time in seconds. kbWasSaid will check whether the sentence was said in last **max. age** seconds"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"},"form":"binary","operator":null,"left":{"text":"person","types":["Object"]},"right":{"text":"[receiver, topic, sentenceID, maxAge]","types":["Array"]}}],"examples":[{"text":"```sqf\nplayer kbWasSaid [otherUnit, \"myTopic\", \"mySentenceID\", 3];\n```","code":["player kbWasSaid [otherUnit, \"myTopic\", \"mySentenceID\", 3];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Conversations","kbAddTopic","kbHasTopic","kbTell","kbReact","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","Take On Helicopters: Scripting Commands"]}