limboai/doc_classes/BTProbability.xml

20 lines
706 B
XML
Raw Permalink Normal View History

2022-11-01 20:31:22 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name="BTProbability" inherits="BTDecorator" version="3.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
<brief_description>
2022-11-04 12:27:09 +00:00
BT decorator that executes child with probability.
2022-11-01 20:31:22 +00:00
</brief_description>
<description>
2022-11-04 12:27:09 +00:00
BT decorator that executes its child task with a probability of the [member run_chance]. Returns FAILURE if the execution didn't happen.
2022-11-01 20:31:22 +00:00
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="run_chance" type="float" setter="set_run_chance" getter="get_run_chance" default="0.5">
</member>
</members>
<constants>
</constants>
</class>