unreal.BTComposite_Selector

class unreal.BTComposite_Selector(outer: Object | None = None, name: Name | str = 'None')

Bases: BTCompositeNode

Selector composite node. Selector Nodes execute their children from left to right, and will stop executing its children when one of their children succeeds. If a Selector’s child succeeds, the Selector succeeds. If all the Selector’s children fail, the Selector fails.

C++ Source:

  • Module: AIModule

  • File: BTComposite_Selector.h

Editor Properties: (see get_editor_property/set_editor_property)

  • apply_decorator_scope (bool): [Read-Write] if set, all decorators in branch below will be removed when execution flow leaves (decorators on this node are not affected)

  • children (Array[BTCompositeChild]): [Read-Write] child nodes

  • node_name (str): [Read-Write] node name

  • services (Array[BTService]): [Read-Write] service nodes