kbWasSaid: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
m (format) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| person '''kbWasSaid''' [receiver,topic, | | person '''kbWasSaid''' [receiver, topic, sentenceID, maxAge] |= Syntax | ||
|p1= person: [[Person]] - who said the item |= PARAMETER1 | |p1= person: [[Person]] - who said the item |= PARAMETER1 | ||
|p2= [receiver,topic, | |p2= [receiver, topic, sentenceID, maxAge]: [[Array]] |= PARAMETER2 | ||
|p3= receiver: [[Person]] - receiver of the sentence | |p3= receiver: [[Person]] - receiver of the sentence | ||
|p4= topic: [[String]] - name of the topic used in [[kbAddTopic]] | |p4= topic: [[String]] - name of the topic used in [[kbAddTopic]] | ||
|p5= | |p5= sentenceID: [[String]] - id of sentence that we want to check | ||
|p5= | |p5= maxAge: [[Number]] - time in seconds. '''kbWasSaid''' will check whether the sentence was said in last '''max. age''' seconds | ||
| [[Boolean]] |= RETURNVALUE | | [[Boolean]] |= RETURNVALUE |
Revision as of 10:03, 7 May 2015
Description
- Description:
- Check if given item was said by person to someone.
- Groups:
- Uncategorised
Syntax
- Syntax:
- person kbWasSaid [receiver, topic, sentenceID, maxAge]
- Parameters:
- person: Person - who said the item
- [receiver, topic, sentenceID, maxAge]: Array
- receiver: Person - receiver of the sentence
- topic: String - name of the topic used in kbAddTopic
- maxAge: 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