kbWasSaid: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 11: | Line 10: | ||
|arg= global |MP arguments= | |arg= global |MP arguments= | ||
| Check if given item was said by person to someone. See [[Conversations]] for more details. |DESCRIPTION= | | Check if given item was said by person to someone. See [[Conversations]] for more details. |DESCRIPTION= | ||
| person [[kbWasSaid]] [receiver, topic, sentenceID, maxAge] |SYNTAX= | | person [[kbWasSaid]] [receiver, topic, sentenceID, maxAge] |SYNTAX= | ||
Line 33: | Line 30: | ||
|x1= <code>[[player]] [[kbWasSaid]] [otherUnit, "myTopic", "mySentenceID", 3];</code>|EXAMPLE1= | |x1= <code>[[player]] [[kbWasSaid]] [otherUnit, "myTopic", "mySentenceID", 3];</code>|EXAMPLE1= | ||
| [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbTell]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] |SEEALSO= | | [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbTell]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 01:37, 17 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