User Tools

Site Tools


dragengine:modules:dragonscript:behavior_particleemitter

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_particleemitter [2025/05/02 21:49] – [Optional Behaviors] dragonlorddragengine:modules:dragonscript:behavior_particleemitter [2025/05/04 13:40] (current) – [particleEmitter.check] dragonlord
Line 142: Line 142:
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
 |casting|true,false|Particle emitter is casting or not| |casting|true,false|Particle emitter is casting or not|
 +|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 171: Line 172:
 </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 these state machine events. If behavior has non-empty identifier replace ''particleEmitter'' with ''particleEmitter(id)''.
 +
 +===== particleEmitter.startCasting =====
 +
 +Start casting particles.
 +
 +===== particleEmitter.stopCasting =====
 +
 +Stop casting particles.
 +
 +===== particleEmitter.lastParticleDied =====
 +
 +Last particle of a burst emission died.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 181: Line 206:
   * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: Add actions and conditions for behavior trees to use.   * [[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.   * [[behavior_statemachine|ECBehaviorStateMachine]]: Add actions and conditions for state machine to use and events to send to the state machine.
- 
  
 ====== Persistency ====== ====== Persistency ======
dragengine/modules/dragonscript/behavior_particleemitter.1746222579.txt.gz · Last modified: 2025/05/02 21:49 by dragonlord