2024-01-12 20:05:50 +00:00
:github_url: hide
.. DO NOT EDIT THIS FILE!!!
.. Generated automatically from Godot engine sources.
2024-09-30 09:17:01 +00:00
.. Generator: https://github.com/godotengine/godot/tree/4.3/doc/tools/make_rst.py.
.. XML source: https://github.com/godotengine/godot/tree/4.3/modules/limboai/doc_classes/BTCallMethod.xml.
2024-01-12 20:05:50 +00:00
.. _class_BTCallMethod:
BTCallMethod
============
**Inherits:** :ref: `BTAction<class_BTAction>` **<** :ref: `BTTask<class_BTTask>` **<** :ref: `BT<class_BT>`
BT action that calls a method on a specified `` Node `` or `` Object `` .
.. rst-class :: classref-introduction-group
Description
-----------
BTCallMethod action calls a :ref: `method<class_BTCallMethod_property_method>` on the specified `` Node `` or `` Object `` instance and returns `` SUCCESS `` .
Returns `` FAILURE `` if the action encounters an issue during the method execution.
.. rst-class :: classref-reftable-group
Properties
----------
.. table ::
:widths: auto
2024-07-20 15:25:24 +00:00
+----------------------------------------------------------------+---------------------------------------------------------------------------+-----------+
| :ref: `Array<class_Array>` \[:ref: `BBVariant<class_BBVariant>` \] | :ref: `args<class_BTCallMethod_property_args>` | `` [] `` |
+----------------------------------------------------------------+---------------------------------------------------------------------------+-----------+
| `` bool `` | :ref: `args_include_delta<class_BTCallMethod_property_args_include_delta>` | `` false `` |
+----------------------------------------------------------------+---------------------------------------------------------------------------+-----------+
| `` StringName `` | :ref: `method<class_BTCallMethod_property_method>` | `` &"" `` |
+----------------------------------------------------------------+---------------------------------------------------------------------------+-----------+
| :ref: `BBNode<class_BBNode>` | :ref: `node<class_BTCallMethod_property_node>` | |
+----------------------------------------------------------------+---------------------------------------------------------------------------+-----------+
| `` StringName `` | :ref: `result_var<class_BTCallMethod_property_result_var>` | `` &"" `` |
+----------------------------------------------------------------+---------------------------------------------------------------------------+-----------+
2024-01-12 20:05:50 +00:00
.. rst-class :: classref-section-separator
----
.. rst-class :: classref-descriptions-group
Property Descriptions
---------------------
.. _class_BTCallMethod_property_args:
.. rst-class :: classref-property
2024-07-20 15:25:24 +00:00
:ref: `Array<class_Array>` \[:ref: `BBVariant<class_BBVariant>` \] **args** = `` [] `` :ref: `🔗<class_BTCallMethod_property_args>`
2024-01-12 20:05:50 +00:00
.. rst-class :: classref-property-setget
2024-07-20 15:25:24 +00:00
- |void| **set_args** \ (\ value\: :ref: `Array<class_Array>` \[:ref: `BBVariant<class_BBVariant>` \]\ )
- :ref: `Array<class_Array>` \[:ref: `BBVariant<class_BBVariant>` \] **get_args** \ (\ )
2024-01-12 20:05:50 +00:00
The arguments to be passed when calling the method.
.. rst-class :: classref-item-separator
----
.. _class_BTCallMethod_property_args_include_delta:
.. rst-class :: classref-property
2024-07-20 15:25:24 +00:00
`` bool `` **args_include_delta** = `` false `` :ref: `🔗<class_BTCallMethod_property_args_include_delta>`
2024-01-12 20:05:50 +00:00
.. rst-class :: classref-property-setget
2024-07-20 15:25:24 +00:00
- |void| **set_include_delta** \ (\ value\: `` bool ` ` \ )
- `` bool `` **is_delta_included** \ (\ )
2024-01-12 20:05:50 +00:00
Include delta as a first parameter and shift the position of the rest of the arguments if any.
.. rst-class :: classref-item-separator
----
.. _class_BTCallMethod_property_method:
.. rst-class :: classref-property
2024-07-20 15:25:24 +00:00
`` StringName `` **method** = `` &"" `` :ref: `🔗<class_BTCallMethod_property_method>`
2024-01-12 20:05:50 +00:00
.. rst-class :: classref-property-setget
2024-07-20 15:25:24 +00:00
- |void| **set_method** \ (\ value\: `` StringName ` ` \ )
- `` StringName `` **get_method** \ (\ )
2024-01-12 20:05:50 +00:00
The name of the method to be called.
.. rst-class :: classref-item-separator
----
.. _class_BTCallMethod_property_node:
.. rst-class :: classref-property
2024-07-20 15:25:24 +00:00
:ref: `BBNode<class_BBNode>` **node** :ref: `🔗<class_BTCallMethod_property_node>`
2024-01-12 20:05:50 +00:00
.. rst-class :: classref-property-setget
2024-07-20 15:25:24 +00:00
- |void| **set_node_param** \ (\ value\: :ref: `BBNode<class_BBNode>` \ )
- :ref: `BBNode<class_BBNode>` **get_node_param** \ (\ )
2024-01-12 20:05:50 +00:00
Specifies the `` Node `` or `` Object `` instance containing the method to be called.
2024-01-16 10:18:18 +00:00
.. rst-class :: classref-item-separator
----
.. _class_BTCallMethod_property_result_var:
.. rst-class :: classref-property
2024-07-20 15:25:24 +00:00
`` StringName `` **result_var** = `` &"" `` :ref: `🔗<class_BTCallMethod_property_result_var>`
2024-01-16 10:18:18 +00:00
.. rst-class :: classref-property-setget
2024-07-20 15:25:24 +00:00
- |void| **set_result_var** \ (\ value\: `` StringName ` ` \ )
- `` StringName `` **get_result_var** \ (\ )
2024-01-16 10:18:18 +00:00
if non-empty, assign the result of the method call to the blackboard variable specified by this property.
2024-01-12 20:05:50 +00:00
.. |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.)`
2024-07-20 15:25:24 +00:00
.. |void| replace :: :abbr: `void (No return value.)`