BTCheckTrigger
Inherits: BTCondition < BTTask < BT
BT condition that checks a trigger (a boolean variable).
Description
BTCheckTrigger verifies whether the variable is set to true. If it is, the task switches it to false and returns SUCCESS. Otherwise, it returns FAILURE.
BTCheckTrigger can function as a “gate” within a BTSequence: when the trigger variable is set to true, it permits the execution of subsequent tasks and then changes the variable to false.
Properties
|
|
Property Descriptions
StringName variable = &"" 🔗
void set_variable(value:
StringName)StringNameget_variable()
A boolean variable on the blackboard used as a trigger. See also BTTask.blackboard.
If variable’s value is true, BTCheckTrigger will switch it to false and return SUCCESS.
If variable’s value is false, BTCheckTrigger will return FAILURE.