kbHasTopic: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|gr1= Conversations | |gr1= Conversations | ||
|arg= local | |arg= local | ||
|1.00 | |1.00 | ||
| 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. | ||
| person [[kbHasTopic]] topicName | | person [[kbHasTopic]] topicName | ||
|p1= person: [[Object]] | |p1= person: [[Object]] | ||
|p2= topicName: [[String]] | |p2= topicName: [[String]] | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>_obiHasTopic = [[player]] [[kbHasTopic]] "helloThereGeneralK";</code> | |x1= <code>_obiHasTopic = [[player]] [[kbHasTopic]] "helloThereGeneralK";</code> | ||
|x2= <code>if ([[player]] [[kbHasTopic]] "dontShoot") then { [[player]] [[kbRemoveTopic]] "dontShoot"; };</code> | |x2= <code>if ([[player]] [[kbHasTopic]] "dontShoot") then { [[player]] [[kbRemoveTopic]] "dontShoot"; };</code> | ||
| [[Conversations]], [[kbAddTopic]], [[kbTell]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] | | [[Conversations]], [[kbAddTopic]], [[kbTell]], [[kbReact]], [[kbRemoveTopic]], [[kbAddDatabase]], [[kbAddDatabaseTargets]], [[FSM]], [[FSM Editor]] | ||
}} | }} |
Revision as of 01:00, 18 January 2021
Description
- Description:
- Check if conversation topic was registered to given person. See Conversations for more details.
- Groups:
- Conversations
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