User Tools

Site Tools


dragengine:modules:dragonscript:behavior_playsound

Differences

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

Link to this comparison view

Next revision
Previous revision
dragengine:modules:dragonscript:behavior_playsound [2025/03/13 14:40] – created dragonlorddragengine:modules:dragonscript:behavior_playsound [2025/05/01 13:00] (current) dragonlord
Line 1: Line 1:
 {{tag>dragonscript behavior}} {{tag>dragonscript behavior}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[abstractions#behavior_elementsquick_and_easy_development|Behavior Elements: Quick and Easy Development]] >> **ECBehaviorPlaySound**+[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[dragengine:modules:dragonscript:abstractions|Abstraction Layers: How you want to build your Game]] >> [[dragengine:modules:dragonscript:behavior_elements|Behavior Elements]] >> **ECBehaviorPlaySound**
 </WRAP> </WRAP>
  
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'' with ''playSound(id)''.
 +
 +===== playSound.play =====
 +
 +Play sound.
 +
 +This is an example of using this action:
 +<code xml>
 +<action name='playSound.play'/>
 +</code>
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 254: Line 267:
                    default is 'default' -->                    default is 'default' -->
     <string name='triggerTable'>default</string>     <string name='triggerTable'>default</string>
 +    
 +    <!-- optional: identifier of ECBehaviorTriggered to synchronize with or empty
 +                   string to not synchronize. default is empty string. -->
 +    <string name='trigger.synchronize'>other</string>
          
     <!-- set element properties. omit property prefix if used inside behavior tag -->     <!-- set element properties. omit property prefix if used inside behavior tag -->
dragengine/modules/dragonscript/behavior_playsound.1741876800.txt.gz · Last modified: 2025/03/13 14:40 by dragonlord