BTSetAgentProperty

Inherits: BTAction < BTTask < BT

BT action that assigns a value to the specified agent’s property.

Description

BTSetAgentProperty assigns the specified value to the agent’s property identified by the property and returns SUCCESS. Optionally, it can perform a specific operation before assignment.

Returns FAILURE if it fails to set the property.

Properties

Operation

operation

0

StringName

property

&""

BBVariant

value


Property Descriptions

Operation operation = 0

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

property = property OPERATION value


StringName property = &""

  • void set_property ( StringName value )

  • StringName get_property ( )

Parameter that specifies the agent’s property name.


BBVariant value

Parameter that specifies the value that will be assigned to agent’s property.