User Tools

Site Tools


dragengine:modules:dragonscript:behavior_footsteps

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:behavior_footsteps [2025/05/05 13:59] dragonlorddragengine:modules:dragonscript:behavior_footsteps [2025/07/26 00:43] (current) – [Behavior Tree Actions] dragonlord
Line 36: Line 36:
  
 Configuration changed. Configuration changed.
 +
 +====== Conversation Commands ======
 +
 +This behavior adds these conversation commands.
 +
 +===== footSteps =====
 +
 +Control footstep behavior. The following syntax is supported:
 +
 +''footSteps step <configuration> [<event> | random]''
 +
 +Play footstep sound using configuration. Event is either "random" to play a random event of the index of the event to play.
 +
 +^Parameter^Description^
 +|configuration|Identifier of configuration to play footstep from.|
 +|event|Index of event to play. Has to be in the range from ''0'' to ''configuration.eventCount-1''.|
 +
 +====== Conversation Conditions ======
 +
 +This behavior adds no conversation conditions.
  
 ====== Behavior Tree Actions ====== ====== Behavior Tree Actions ======
Line 55: Line 75:
 </action> </action>
 </code> </code>
 +
  
 ===== footSteps.check ===== ===== footSteps.check =====
Line 174: Line 195:
 <elementClass name='MyClass' class='GenericBehaviorElement'> <elementClass name='MyClass' class='GenericBehaviorElement'>
   <behavior type='ECBehaviorFootSteps'>   <behavior type='ECBehaviorFootSteps'>
 +    <!-- optional: use actor animated with id instead of empty string -->
 +    <string name='actorAnimated'>second</string>
 +    
     <!-- set if update() is automatically called on postThink(). default is 'true' -->     <!-- set if update() is automatically called on postThink(). default is 'true' -->
     <boolean name='autoUpdate'>false</boolean>     <boolean name='autoUpdate'>false</boolean>
dragengine/modules/dragonscript/behavior_footsteps.1746453595.txt.gz · Last modified: 2025/05/05 13:59 by dragonlord