This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_statemachine [2025/05/02 11:38] – dragonlord | dragengine:modules:dragonscript:behavior_statemachine [2025/05/09 19:04] (current) – dragonlord | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| ===== path ===== | ===== path ===== | ||
| Set path to state machine file to load. | Set path to state machine file to load. | ||
| - | * Full name: '' | + | * Full name: '' |
| * Type: string | * Type: string | ||
| * Default Value: empty string | * Default Value: empty string | ||
| * Expected File Type: '' | * Expected File Type: '' | ||
| - | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
| + | |||
| + | ===== debug ===== | ||
| + | Debug mode prefix. If not empty string enables debug mode with prefix to locate log messages easily. | ||
| + | * Full name: '' | ||
| + | * Type: string | ||
| + | * Default Value: empty string | ||
| + | * Example (*.deeclass) <code xml>< | ||
| ===== Events ===== | ===== Events ===== | ||
| Line 75: | Line 82: | ||
| ===== stateMachine.event ===== | ===== stateMachine.event ===== | ||
| - | Run event on state machine. Action returns BTResult.success no matter if current state understands event or not unless '' | + | Run event on state machine. |
| ^Parameter^Value^Description^ | ^Parameter^Value^Description^ | ||
| |id|string|Identifier of event to run| | |id|string|Identifier of event to run| | ||
| - | |required| |If present action fails if current state does not understand event| | ||
| This is an example of using this action: | This is an example of using this action: | ||
| Line 101: | Line 107: | ||
| |state.contains|string|Current state identifier contains string value| | |state.contains|string|Current state identifier contains string value| | ||
| |state.contains.not|string|Current state identifier does not contain string value| | |state.contains.not|string|Current state identifier does not contain string value| | ||
| + | |wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled| | ||
| This is an example of using this action: | This is an example of using this action: | ||