This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_playsound [2025/03/13 14:40] – created dragonlord | dragengine:modules:dragonscript:behavior_playsound [2025/05/01 13:00] (current) – dragonlord | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{tag> | {{tag> | ||
| <WRAP youarehere> | <WRAP youarehere> | ||
| - | [[: | + | [[: |
| </ | </ | ||
| Line 152: | Line 152: | ||
| This behavior has no events. | This behavior has no events. | ||
| + | |||
| + | ====== Behavior Tree Actions ====== | ||
| + | |||
| + | This behavior adds these behavior tree actions if behavior tree is present. If behavior has non-empty identifier replace '' | ||
| + | |||
| + | ===== playSound.play ===== | ||
| + | |||
| + | Play sound. | ||
| + | |||
| + | This is an example of using this action: | ||
| + | <code xml> | ||
| + | <action name=' | ||
| + | </ | ||
| ====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
| Line 254: | Line 267: | ||
| | | ||
| <string name=' | <string name=' | ||
| + | | ||
| + | <!-- optional: identifier of ECBehaviorTriggered to synchronize with or empty | ||
| + | | ||
| + | <string name=' | ||
| | | ||
| <!-- set element properties. omit property prefix if used inside behavior tag --> | <!-- set element properties. omit property prefix if used inside behavior tag --> | ||