BTProbability
Inherits: BTDecorator < BTTask < BT
BT decorator that executes its child task with a given probability.
Description
BTProbability executes its child task with a given probability defined by run_chance.
Returns the result of the child task if it was executed; otherwise, it returns FAILURE
.
Properties
float |
|
Property Descriptions
float run_chance = 0.5
void set_run_chance ( float value )
float get_run_chance ( )
Probability that defines how likely the child task will be executed.