User Tools

Site Tools


dragengine:modules:dragonscript:gwbehavior_parametertree

This is an old revision of the document!


GWBehaviorParameterTree

Game world behavior loading a parameter tree for the game world. The parameter tree is loaded from the file set in the game world property parameterTree.path when the game world is initialized. The loaded parameter tree can be accessed by scripts with getParameterTree().

This game world behavior can be used together with the ECBehaviorParameterTree element class behavior to store configuration data for multiple elements in a single .dept file with the ECBehaviorParameterTree selecting the data tree to use.

Instance Counts

This behavior can be present only once in a game world.

Game World Properties

parameterTree.path

Set path of the parameter tree file to load. If empty or not set, the parameter tree stays empty.

  • Full name: parameterTree.path
  • Type: string
  • Default Value: empty string
  • Expected File Type: *.dept

Events

This behavior sends no events.

Behavior Tree Actions

This behavior adds no behavior tree actions.

Behavior Tree Conditions

This behavior adds no behavior tree conditions.

State Machine Actions

This behavior adds no state machine actions.

State Machine Conditions

This behavior adds no state machine conditions.

State Machine Events

This behavior sends no state machine events.

Required Behaviors

This behavior requires no other behaviors.

Optional Behaviors

This behavior has no optional behaviors.

API Documentation

GWBehaviorParameterTree.

Since DragonScript Module Version 1.35

Use Cases

  • Load global game settings or tuning values that all elements of a game world can read.
  • Provide game world wide data tables without creating a behavior element.
You could leave a comment if you were logged in.
dragengine/modules/dragonscript/gwbehavior_parametertree.1792086823.txt.gz · Last modified: by dragonlord