User Tools

Site Tools


dragengine:modules:dragonscript:behavior_daytimesky

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_daytimesky [2025/04/30 22:07] dragonlorddragengine:modules:dragonscript:behavior_daytimesky [2025/05/04 13:48] (current) – [dayTimeSky.check] dragonlord
Line 69: Line 69:
 |time.less|float|Day time is less than hour of day| |time.less|float|Day time is less than hour of day|
 |time.greater|float|Day time is greater than hour of day| |time.greater|float|Day time is greater than hour of day|
 +|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:
Line 99: Line 100:
 </action> </action>
 </code> </code>
 +
 +====== State Machine Actions ======
 +
 +Same as [[#behavior_tree_actions|Behavior Tree Actions]].
 +
 +====== State Machine Conditions ======
 +
 +Same as [[#behavior_tree_conditions|Behavior Tree Conditions]].
 +
 +====== State Machine Events ======
 +
 +This behavior sends no state machine events.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 106: Line 119:
 ====== Optional Behaviors ====== ====== Optional Behaviors ======
  
-This behavior does not support optional behaviors+  * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: Add actions and conditions for behavior trees to use
 +  * [[behavior_statemachine|ECBehaviorStateMachine]]: Add actions and conditions for state machine to use and events to send to the state machine.
 ====== Persistency ====== ====== Persistency ======
  
Line 146: Line 159:
      
   <behavior type='ECBehaviorDayTimeSky'>   <behavior type='ECBehaviorDayTimeSky'>
 +    <!-- optional: use behavior tree with id instead of empty string -->
 +    <string name='behaviorTree'>second</string>
 +    
 +    <!-- optional: use state machine with id instead of empty string -->
 +    <string name='stateMachine'>second</string>
 +    
     <!-- set element properties. omit property prefix if used inside behavior tag -->     <!-- set element properties. omit property prefix if used inside behavior tag -->
     <string name='.controllerDayTime'>daytime</string>     <string name='.controllerDayTime'>daytime</string>
dragengine/modules/dragonscript/behavior_daytimesky.1746050850.txt.gz · Last modified: 2025/04/30 22:07 by dragonlord