User Tools

Site Tools


dragengine:modules:dragonscript:behavior_hitscan

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_hitscan [2025/05/02 21:48] – [Required Behaviors] dragonlorddragengine:modules:dragonscript:behavior_hitscan [2025/05/04 13:40] (current) – [hitScan.check] dragonlord
Line 66: Line 66:
  
 This behavior has no events This behavior has no events
 +
 ====== Behavior Tree Actions ====== ====== Behavior Tree Actions ======
  
Line 123: Line 124:
 |hits.percentage.less|integer|Percentage of hits is less than value in the range from 0 to 1| |hits.percentage.less|integer|Percentage of hits is less than value in the range from 0 to 1|
 |hits.percentage.greater|integer|Percentage of hits is greater than value in the range from 0 to 1| |hits.percentage.greater|integer|Percentage of hits is greater than value in the range from 0 to 1|
 +|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 173:
 ====== State Machine Events ====== ====== State Machine Events ======
  
-This behavior sends no state machine events.+This behavior sends these state machine events. If behavior has non-empty identifier replace ''hitScan'' with ''hitScan(id)''
 + 
 +===== hitScan.done ===== 
 + 
 +Hit scan finished and the results can be examine now.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 181: Line 187:
   * [[behavior_component|ECBehaviorComponent]]: Required if collision test has to originate from bone.   * [[behavior_component|ECBehaviorComponent]]: Required if collision test has to originate from bone.
   * [[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.
  
 ====== Persistency ====== ====== Persistency ======
dragengine/modules/dragonscript/behavior_hitscan.1746222500.txt.gz · Last modified: 2025/05/02 21:48 by dragonlord