kbWasSaid: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|gr1=([^ ]+) \|([0-9]\.[0-9]{2}) " to "|$2 |gr1= $1 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
|gr1= | |game3= tkoh | ||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|gr1= Conversations | |||
|arg= global | |arg= global | ||
Line 11: | Line 19: | ||
|descr= Check if given item was said by person to someone. See [[Conversations]] for more details. | |descr= Check if given item was said by person to someone. See [[Conversations]] for more details. | ||
|s1= | |s1= person [[kbWasSaid]] [receiver, topic, sentenceID, maxAge] | ||
|p1= person: [[Object]] - who said the item | |p1= person: [[Object]] - who said the item | ||
|p2 | |p2= receiver: [[Object]] - receiver of the sentence | ||
| | |p3= topic: [[String]] - name of the topic used in [[kbAddTopic]] | ||
| | |p4= 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 | ||
Line 27: | Line 33: | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf>player kbWasSaid [otherUnit, "myTopic", "mySentenceID", 3];</sqf> | ||
|seealso= [[Conversations]] | |seealso= [[Conversations]] [[kbAddTopic]] [[kbHasTopic]] [[kbTell]] [[kbReact]] [[kbRemoveTopic]] [[kbAddDatabase]] [[kbAddDatabaseTargets]] [[FSM]] [[FSM Editor]] | ||
}} | }} | ||
Latest revision as of 16:23, 15 August 2022
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: 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:
Additional Information
- See also:
- Conversations kbAddTopic kbHasTopic kbTell kbReact kbRemoveTopic kbAddDatabase kbAddDatabaseTargets FSM FSM 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