User Tools

Site Tools


dragengine:modules:dragonscript:gwbehavior_btsm

This is an old revision of the document!


GWBehaviorBTSM

Game world behavior providing shared behavior tree and state machine actions, conditions and events for all elements present in the game world.

Actions and conditions added to this behavior are available to all ECBehaviorBehaviorTree and ECBehaviorStateMachine instances of behavior elements in the game world. This allows game world behaviors to be controlled and queried by element behaviors. See the element behavior documentation for how to do this (action/condition gameWorld, parameter receiveEvents).

This behavior is added by default to DefaultGWBehavior.

Instance Counts

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

Game World Properties

This behavior has no game world properties.

Events

This behavior sends no events.

Behavior Tree Actions

This behavior adds these behavior tree actions.

app.btsm.runEvent

Run event on the application state machines.

ParameterValueDescription
eventstringName of the event to run.

Behavior Tree Conditions

This behavior adds no behavior tree conditions.

State Machine Actions

State Machine Conditions

State Machine Events

This behavior sends no state machine events of its own. Events are send through this behavior by other game world behaviors.

Required Behaviors

This behavior requires no other behaviors.

Optional Behaviors

This behavior does not support optional behaviors.

API Documentation

GWBehaviorBTSM.

Since DragonScript Module Version 1.35

Use Cases

  • Run application wide state machine events from game world behavior trees or state machines.
  • Add custom behavior tree and state machine actions and conditions for all elements of a game world.
  • Send game world wide events to all state machines of elements that opted in to receive them.
You could leave a comment if you were logged in.
dragengine/modules/dragonscript/gwbehavior_btsm.1792087679.txt.gz · Last modified: by dragonlord