kbWasSaid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "")
m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ")
Line 13: Line 13:
|version4= 0.50
|version4= 0.50


|gr1= Conversations
|gr1= Conversations


|arg= global
|arg= global
Line 19: Line 19:
|descr= Check if given item was said by person to someone. See [[Conversations]] for more details.
|descr= Check if given item was said by person to someone. See [[Conversations]] for more details.


|s1= person [[kbWasSaid]] [receiver, topic, sentenceID, maxAge]
|s1= person [[kbWasSaid]] [receiver, topic, sentenceID, maxAge]


|p1= person: [[Object]] - who said the item
|p1= person: [[Object]] - who said the item

Revision as of 23:12, 19 June 2021

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, topic, sentenceID, maxAge]: Array
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:
ConversationskbAddTopickbHasTopickbTellkbReactkbRemoveTopickbAddDatabasekbAddDatabaseTargetsFSMFSM 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