kbWasSaid: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|gr1= Conversations | |gr1= Conversations | ||
|1.00 | |1.00 | ||
|arg= global |MP arguments= | |arg= global |MP arguments= | ||
| Check if given item was said by person to someone. See [[Conversations]] for more details. | | Check if given item was said by person to someone. See [[Conversations]] for more details. | ||
| person [[kbWasSaid]] [receiver, topic, sentenceID, maxAge] | | person [[kbWasSaid]] [receiver, topic, sentenceID, maxAge] | ||
|p1= person: [[Object]] - who said the item | |p1= person: [[Object]] - who said the item | ||
|p2= [receiver, topic, sentenceID, maxAge]: [[Array]] | |p2= [receiver, topic, sentenceID, maxAge]: [[Array]] | ||
|p3= receiver: [[Object]] - receiver of the sentence | |p3= receiver: [[Object]] - receiver of the sentence | ||
Line 27: | Line 27: | ||
|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]] | | [[Boolean]] | ||
|x1= <code>[[player]] [[kbWasSaid]] [otherUnit, "myTopic", "mySentenceID", 3];</code> | |x1= <code>[[player]] [[kbWasSaid]] [otherUnit, "myTopic", "mySentenceID", 3];</code> | ||
| [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbTell]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] | | [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbTell]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 01:00, 18 January 2021
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
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