kbHasTopic: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix categories) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Check if conversation topic was registered to given person. See [[Conversations]] for more details. |= | | Check if conversation topic was registered to given person. See [[Conversations]] for more details. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| person [[kbHasTopic]] topicName |= | | person [[kbHasTopic]] topicName |SYNTAX= | ||
|p1= person: [[Object]] |= | |p1= person: [[Object]] |PARAMETER1= | ||
|p2= topicName: [[String]] |= | |p2= topicName: [[String]] |PARAMETER2= | ||
| [[Boolean]] |= | | [[Boolean]] |RETURNVALUE= | ||
|x1= <code>_obiHasTopic = [[player]] [[kbHasTopic]] "helloThereGeneralK";</code> |= | |x1= <code>_obiHasTopic = [[player]] [[kbHasTopic]] "helloThereGeneralK";</code> |EXAMPLE1= | ||
|x2= <code>if ([[player]] [[kbHasTopic]] "dontShoot") then { [[player]] [[kbRemoveTopic]] "dontShoot"; };</code> |= | |x2= <code>if ([[player]] [[kbHasTopic]] "dontShoot") then { [[player]] [[kbRemoveTopic]] "dontShoot"; };</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Conversations]], [[kbAddTopic]], [[kbTell]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] |= | | [[Conversations]], [[kbAddTopic]], [[kbTell]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] |SEEALSO= | ||
}} | }} |
Revision as of 14:42, 7 April 2019
Description
- Description:
- Check if conversation topic was registered to given person. See Conversations for more details.
- Groups:
- Uncategorised
Syntax
- Syntax:
- person kbHasTopic topicName
- Parameters:
- person: Object
- topicName: String
- Return Value:
- Boolean
Examples
- Example 1:
_obiHasTopic = player kbHasTopic "helloThereGeneralK";
- Example 2:
if (player kbHasTopic "dontShoot") then { player kbRemoveTopic "dontShoot"; };
Additional Information
- See also:
- ConversationskbAddTopickbTellkbReactkbRemoveTopickbAddDatabasekbAddDatabaseTargetsFSMFSM 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