/tg/ Station 13 - Modules - TypesVar Details

selector

Selector node: ticks children in order. Returns the first non-BT_FAILURE result (BT_SUCCESS or BT_RUNNING), stopping further evaluation. Returns BT_FAILURE only if all children fail.

Resumes from the last RUNNING child index rather than restarting from child 1.

Vars

running_child_indexIndex of the child that last returned BT_RUNNING.

Var Details

running_child_index

Index of the child that last returned BT_RUNNING.