BTSetVar

Inherits: BTAction < BTTask < BT

BT action that assigns value to the variable and then returns SUCCESS.

Description

BTSetVar assigns value to the variable and then returns SUCCESS. Optionally, it can perform a specific operation before assignment.

Returns FAILURE if it fails to set the variable.

Properties

Operation

operation

0

BBVariant

value

StringName

variable

&""


Property Descriptions

Operation operation = 0 🔗

Specifies the operation to be performed before assignment. Operation is executed as follows:

variable = variable OPERATION value


BBVariant value 🔗

Parameter that specifies the value to be assigned to the variable.


StringName variable = &"" 🔗

  • void set_variable(value: StringName)

  • StringName get_variable()

Name of the variable to which the value will be assigned.