kbWasSaid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (format)
m (Fixes)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Check if given item was said by person to someone. |= 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


|p1= person: [[Object]] - who said the item |= PARAMETER1  
|p1= person: [[Object]] - who said the item |= PARAMETER1  
Line 17: Line 17:


|p3= receiver: [[Object]] - receiver of the sentence
|p3= receiver: [[Object]] - 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= sentenceID: [[String]] - id of sentence that we want to check
|p5= sentenceID: [[String]] - id of sentence that we want to check
|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>myPlayer kbWasSaid [myReceiver, "myTopic", "mySentenceID", 3];</code>|= EXAMPLE1  
|x1= <code>[[player]] [[kbWasSaid]] [otherUnit, "myTopic", "mySentenceID", 3];</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[Conversations]], [[kbAddTopic]], [[kbHasTopic]], [[kbTell]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  
Line 47: Line 50:
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Conversations|{{uc:{{PAGENAME}}}}]]

Revision as of 22:12, 27 March 2018

Hover & click on the images for description

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

Example 1:
player kbWasSaid [otherUnit, "myTopic", "mySentenceID", 3];

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

Notes

Bottom Section