limboai/doc_classes/BTCheckTrigger.xml

20 lines
1.2 KiB
XML
Raw Permalink Normal View History

2023-08-09 18:19:13 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name="BTCheckTrigger" inherits="BTCondition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
2023-08-09 18:19:13 +00:00
<brief_description>
2023-08-10 11:24:41 +00:00
BT condition that checks a trigger (a boolean variable).
2023-08-09 18:19:13 +00:00
</brief_description>
<description>
[BTCheckTrigger] verifies whether the [member variable] is set to [code]true[/code]. If it is, the task switches it to [code]false[/code] and returns [code]SUCCESS[/code]. Otherwise, it returns [code]FAILURE[/code].
[BTCheckTrigger] can function as a "gate" within a [BTSequence]: when the trigger variable is set to [code]true[/code], it permits the execution of subsequent tasks and then changes the variable to [code]false[/code].
2023-08-09 18:19:13 +00:00
</description>
<tutorials>
</tutorials>
<members>
<member name="variable" type="String" setter="set_variable" getter="get_variable" default="&quot;&quot;">
A boolean variable on the blackboard used as a trigger. See also [member BTTask.blackboard].
If variable's value is [code]true[/code], [BTCheckTrigger] will switch it to [code]false[/code] and return [code]SUCCESS[/code].
If variable's value is [code]false[/code], [BTCheckTrigger] will return [code]FAILURE[/code].
2023-08-09 18:19:13 +00:00
</member>
</members>
</class>