This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| dragengine:modules:dragonscript:behavior_btsmflags [2026/10/09 18:23] – [flags.check] dragonlord | dragengine:modules:dragonscript:behavior_btsmflags [2026/10/09 20:41] (current) – dragonlord | ||
|---|---|---|---|
| Line 55: | Line 55: | ||
| |flag|string|Flag to check.| | |flag|string|Flag to check.| | ||
| |set|'' | |set|'' | ||
| - | |expression|string|Evaluate flag expression. Expression can be of the form '' | ||
| |wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled.| | |wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled.| | ||
| |reset| |If present toggle the flag after the checks succeeded.| | |reset| |If present toggle the flag after the checks succeeded.| | ||
| Line 83: | Line 82: | ||
| < | < | ||
| < | < | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | This is an example of checking multiple flags using a flag expression: | ||
| - | <code xml> | ||
| - | <action name=' | ||
| - | < | ||
| </ | </ | ||
| </ | </ | ||