2023-08-15 11:29:12 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2023-11-15 14:40:07 +00:00
|
|
|
<class name="BTCallMethod" inherits="BTAction" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
2023-08-15 11:29:12 +00:00
|
|
|
<brief_description>
|
2023-09-05 08:55:17 +00:00
|
|
|
BT action that calls a method on a specified [Node] or [Object].
|
2023-08-15 11:29:12 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2023-10-19 12:11:08 +00:00
|
|
|
BTCallMethod action calls a [member method] on the specified [Node] or [Object] instance and returns [code]SUCCESS[/code].
|
|
|
|
Returns [code]FAILURE[/code] if the action encounters an issue during the method execution.
|
2023-08-15 11:29:12 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<members>
|
2024-01-16 10:18:18 +00:00
|
|
|
<member name="args" type="BBVariant[]" setter="set_args" getter="get_args" default="[]">
|
2023-10-19 12:11:08 +00:00
|
|
|
The arguments to be passed when calling the method.
|
2023-08-15 11:29:12 +00:00
|
|
|
</member>
|
2023-12-28 13:26:39 +00:00
|
|
|
<member name="args_include_delta" type="bool" setter="set_include_delta" getter="is_delta_included" default="false">
|
2023-12-27 18:43:54 +00:00
|
|
|
Include delta as a first parameter and shift the position of the rest of the arguments if any.
|
|
|
|
</member>
|
2023-08-28 17:24:55 +00:00
|
|
|
<member name="method" type="StringName" setter="set_method" getter="get_method" default="&""">
|
2023-10-19 12:11:08 +00:00
|
|
|
The name of the method to be called.
|
2023-08-15 11:29:12 +00:00
|
|
|
</member>
|
|
|
|
<member name="node" type="BBNode" setter="set_node_param" getter="get_node_param">
|
2023-10-19 12:11:08 +00:00
|
|
|
Specifies the [Node] or [Object] instance containing the method to be called.
|
2023-08-15 11:29:12 +00:00
|
|
|
</member>
|
2024-01-16 10:18:18 +00:00
|
|
|
<member name="result_var" type="String" setter="set_result_var" getter="get_result_var" default="""">
|
|
|
|
if non-empty, assign the result of the method call to the blackboard variable specified by this property.
|
|
|
|
</member>
|
2023-08-15 11:29:12 +00:00
|
|
|
</members>
|
|
|
|
</class>
|