kbWasSaid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:
|p2= [receiver,topic,sentence id,max. age]: Array -  |= PARAMETER2  
|p2= [receiver,topic,sentence id,max. age]: Array -  |= PARAMETER2  


|p3= |= PARAMETER3
|p3= receiver: [[Object]] - receiver of the sentence
|p4= topic: [[String]] - name of the topic used in [[kbAddTopic]]
|p5= sentence id: [[String]] - id of sentence that we want to check
|p5= max. age: [[Number]] - time in seconds. '''kbWasSaid''' will check whether the sentence was said in last '''max. age''' seconds


| [[Boolean]] |= RETURNVALUE  
| [[Boolean]] |= RETURNVALUE  




|x1= <code>(example)</code>|= EXAMPLE1  
|x1= <code>myPlayer kbWasSaid [myReceiver, "myTopic", "mySentenceID", 3];</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 12:38, 24 March 2011

Hover & click on the images for description

Description

Description:
Check if given item was said by person to someone.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
myPlayer kbWasSaid [myReceiver, "myTopic", "mySentenceID", 3];

Additional Information

See also:
See also needed

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

Notes

Bottom Section