{"name":"kbWasSaid","title":"kbWasSaid","type":"command","url":"https://community.bistudio.com/wiki/kbWasSaid","revid":330038,"updated":"2022-08-15T15:23:07Z","groups":["Conversations"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"argument":"global"},"description":"Check if given item was said by person to someone. See Conversations for more details.","syntaxes":[{"syntax":"person kbWasSaid [receiver, topic, sentenceID, maxAge]","params":[{"name":"person","type":"Object","description":"who said the item","type_expr":"Object"},{"name":"receiver","type":"Object","description":"receiver of the sentence","type_expr":"Object"},{"name":"topic","type":"String","description":"name of the topic used in kbAddTopic","type_expr":"String"},{"name":"sentenceID","type":"String","description":"id of sentence that we want to check","type_expr":"String"},{"name":"maxAge","type":"Number","description":"time in seconds. kbWasSaid will check whether the sentence was said in last **max. age** seconds","type_expr":"Number"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"binary","left":{"text":"person"},"right":{"text":"[receiver, topic, sentenceID, maxAge]"}}],"examples":[{"code":["player kbWasSaid [otherUnit, \"myTopic\", \"mySentenceID\", 3];"]}],"see_also":["Conversations","kbAddTopic","kbHasTopic","kbTell","kbReact","kbRemoveTopic","kbAddDatabase","kbAddDatabaseTargets","FSM","FSM Editor"]}