unreal.BTDecorator_Loop

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

Bases: BTDecorator

Loop decorator node. A decorator node that bases its condition on whether its loop counter has been exceeded.

C++ Source:

  • Module: AIModule

  • File: BTDecorator_Loop.h

Editor Properties: (see get_editor_property/set_editor_property)

  • flow_abort_mode (BTFlowAbortMode): [Read-Write] flow controller settings

  • infinite_loop (bool): [Read-Write] infinite loop

  • infinite_loop_timeout_time (ValueOrBBKey_Float): [Read-Write] timeout (when looping infinitely, when we finish a loop we will check whether we have spent this time looping, if we have we will stop looping). A negative value means loop forever.

  • inverse_condition (bool): [Read-Write] if set, condition check result will be inversed

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

  • num_loops (ValueOrBBKey_Int32): [Read-Write] number of executions