kbWasSaid: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters") |
Lou Montana (talk | contribs) m (Add arg) |
||
Line 5: | Line 5: | ||
|1.00|Game version= | |1.00|Game version= | ||
|arg= global |MP arguments= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 12: | Line 14: | ||
| person [[kbWasSaid]] [receiver, topic, sentenceID, maxAge] |SYNTAX= | | person [[kbWasSaid]] [receiver, topic, sentenceID, maxAge] |SYNTAX= | ||
|p1= person: [[Object]] - who said the item |PARAMETER1= | |p1= person: [[Object]] - who said the item |PARAMETER1= | ||
|p2= [receiver, topic, sentenceID, maxAge]: [[Array]] | |p2= [receiver, topic, sentenceID, maxAge]: [[Array]] |PARAMETER2= | ||
|p3= receiver: [[Object]] - receiver of the sentence | |p3= receiver: [[Object]] - receiver of the sentence | ||
Line 24: | Line 26: | ||
|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]] |RETURNVALUE | | [[Boolean]] |RETURNVALUE= | ||
|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= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} | ||
Line 49: | Line 49: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command Group: Conversations|{{uc:{{PAGENAME}}}}]] | [[Category:Command Group: Conversations|{{uc:{{PAGENAME}}}}]] |
Revision as of 23:40, 13 April 2020
Description
- Description:
- Check if given item was said by person to someone. See Conversations for more details.
- Groups:
- Uncategorised
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