limboai/doc_classes/BTProbability.xml

18 lines
788 B
XML

<?xml version="1.0" encoding="UTF-8" ?>
<class name="BTProbability" inherits="BTDecorator" version="4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
<brief_description>
BT decorator that executes child with a given probability.
</brief_description>
<description>
BT decorator that executes child with a given probability defined by [member run_chance].
Returns the result of the child task if it was executed, otherwise returns [code]FAILURE[/code].
</description>
<tutorials>
</tutorials>
<members>
<member name="run_chance" type="float" setter="set_run_chance" getter="get_run_chance" default="0.5">
Probability that defines how likely the child task will be executed.
</member>
</members>
</class>