:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/modules/limboai/doc_classes/BTAction.xml. .. _class_BTAction: BTAction ======== **Inherits:** :ref:`BTTask` **<** :ref:`BT` **Inherited By:** :ref:`BTAwaitAnimation`, :ref:`BTCallMethod`, :ref:`BTConsolePrint`, :ref:`BTEvaluateExpression`, :ref:`BTFail`, :ref:`BTPauseAnimation`, :ref:`BTPlayAnimation`, :ref:`BTRandomWait`, :ref:`BTSetAgentProperty`, :ref:`BTSetVar`, :ref:`BTStopAnimation`, :ref:`BTWait`, :ref:`BTWaitTicks` Base class for all :ref:`BehaviorTree` actions. .. rst-class:: classref-introduction-group Description ----------- Base class for all actions within a :ref:`BehaviorTree`. You can create your own actions by extending the **BTAction** class. Represents a specific behavior or action in a :ref:`BehaviorTree` that an agent should execute. Actions are the lowest level of the :ref:`BehaviorTree` hierarchy and are responsible for performing the actual work required to achieve a goal. Actions do not have child tasks. A single action can perform a task within one or multiple ticks. If it takes more than one tick to complete the task, the action should return ``RUNNING`` status. When the task is finished, the action returns either ``SUCCESS`` or ``FAILURE`` to indicate the outcome. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`