Skip to main content

Blackboard

Description:

  A blackboard object that can be used to store data for behavior tree nodes.

deltaTime

Type: Readonly Field.

Description:

  The time since the last frame update in seconds.

Signature:

const deltaTime: number

owner

Type: Readonly Field.

Description:

  The unit that the AI agent belongs to.

Signature:

const owner: Unit

__index

Type: Metamethod.

Description:

  A metamethod to index the blackboard properties.

Signature:

metamethod __index: function(self: Blackboard, key: string): Item

Parameters:

ParameterTypeDescription
keystringThe key to index.

Returns:

Return TypeDescription
ItemThe value associated with the key.

__newindex

Type: Metamethod.

Description:

  A metamethod to assign values to the blackboard properties.

Signature:

metamethod __newindex: function(self: Blackboard, key: string, item: Item)

Parameters:

ParameterTypeDescription
keystringThe key to assign.
itemItemThe value to assign to the key.