kbWasSaid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "|r1=$1 |x1=")
Line 25: Line 25:
|p6= maxAge: [[Number]] - time in seconds. [[kbWasSaid]] will check whether the sentence was said in last '''max. age''' seconds
|p6= maxAge: [[Number]] - time in seconds. [[kbWasSaid]] will check whether the sentence was said in last '''max. age''' seconds


| [[Boolean]]
|r1= [[Boolean]]


|x1= <code>[[player]] [[kbWasSaid]] [otherUnit, "myTopic", "mySentenceID", 3];</code>
|x1= <code>[[player]] [[kbWasSaid]] [otherUnit, "myTopic", "mySentenceID", 3];</code>

Revision as of 14:02, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Conversations

Syntax

Syntax:
Syntax needed
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