User Tools

Site Tools


dragengine:modules:dragonscript:gabehavior_statemachine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dragengine:modules:dragonscript:gabehavior_statemachine [2026/10/15 22:44] – dragonlorddragengine:modules:dragonscript:gabehavior_statemachine [2026/10/16 01:18] (current) – [windowGameWorld.update] dragonlord
Line 145: Line 145:
  
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
 +|addBehavior|string|Create game world behavior from named game world behavior factory and add it to active game world.|
 +|addBehavior.id|string|Identifier to use for ''addBehvior''. Default is empty string.|
 |createElement|string|Create element with value named element class and add it to the active game world.| |createElement|string|Create element with value named element class and add it to the active game world.|
 |createElement.spawn|string|Name of spawn point to spawn element at.| |createElement.spawn|string|Name of spawn point to spawn element at.|
 +|clearWorld| |Clear the active game world if present.|
 +|loadWorld|string|Start loading world from ''.deworld'' file and assigns it as active world once finished successfully. See events ''windowGameWorld.loadWorld.*''.|
 +|loadWorld.enableNetworking|''true'', ''false''|Enable networking.|
 +|loadWorld.ignorePersistableElements|''true'', ''false''|Persistable elements are ignored. Set to true for loading persisted game states.|
 |runEvent|string|Run event on [[gwbehavior_btsm|GWBehaviorBTSM]] in the active game world. This allows application state machine to interact with element behavior state machines inside the game world.| |runEvent|string|Run event on [[gwbehavior_btsm|GWBehaviorBTSM]] in the active game world. This allows application state machine to interact with element behavior state machines inside the game world.|
  
Line 255: Line 261:
  
 Run when the application window has been deactivated. Run when the application window has been deactivated.
 +
 +===== windowGameWorld.loadWorld.finished =====
 +
 +Loading game world started by ''windowGameWorld.loadWorld'' has finished successfully and the loaded world is now the active world.
 +
 +===== windowGameWorld.loadWorld.failed =====
 +
 +Loading game world started by ''windowGameWorld.loadWorld'' has failed. The active game world has not changed.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
dragengine/modules/dragonscript/gabehavior_statemachine.1792104257.txt.gz · Last modified: by dragonlord