This is an old revision of the document!
Start Page » DragonScript Scripting Language » Abstraction Layers: How you want to build your Game » Behavior Elements » 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.
This behavior can be present only once in a game world.
This behavior has no game world properties.
This behavior sends no events.
This behavior adds these behavior tree actions.
Run event on the application state machines.
| Parameter | Value | Description |
|---|---|---|
| event | string | Name of the event to run. |
This behavior adds no behavior tree conditions.
Same as Behavior Tree Actions.
Same as Behavior Tree Conditions.
This behavior sends no state machine events of its own. Events are send through this behavior by other game world behaviors.
This behavior requires no other behaviors.
This behavior does not support optional behaviors.
Since DragonScript Module Version 1.35