kbWasSaid

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Check if given item was said by person to someone. See Conversations for more details.
Groups:
Conversations

Syntax

Syntax:
person kbWasSaid [receiver, topic, sentenceID, maxAge]
Parameters:
person: Object - who said the item
receiver: Object - receiver of the sentence
topic: String - name of the topic used in kbAddTopic
sentenceID: String - id of sentence that we want to check
maxAge: Number - time in seconds. kbWasSaid will check whether the sentence was said in last max. age seconds
Return Value:
Boolean

Examples

Example 1:
player kbWasSaid [otherUnit, "myTopic", "mySentenceID", 3];

Additional Information

See also:
Conversations kbAddTopic kbHasTopic kbTell kbReact 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