unreal.BTService_DefaultFocus

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

Bases: BTService_BlackboardBase

Default Focus service node. A service node that automatically sets the AI controller’s focus when it becomes active.

C++ Source:

  • Module: AIModule

  • File: BTService_DefaultFocus.h

Editor Properties: (see get_editor_property/set_editor_property)

  • blackboard_key (BlackboardKeySelector): [Read-Write] blackboard key selector

  • call_tick_on_search_start (bool): [Read-Write] call Tick event when task search enters this node (SearchStart will be called as well)

  • interval (float): [Read-Write] defines time span between subsequent ticks of the service

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

  • random_deviation (float): [Read-Write] adds random range to service’s Interval

  • restart_timer_on_each_activation (bool): [Read-Write] if set, next tick time will be always reset to service’s interval when node is activated