This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_hitscan [2025/05/01 19:06] – dragonlord | dragengine: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 160: | Line 162: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ====== State Machine Actions ====== | ||
+ | |||
+ | Same as [[# | ||
+ | |||
+ | ====== State Machine Conditions ====== | ||
+ | |||
+ | Same as [[# | ||
+ | |||
+ | ====== State Machine Events ====== | ||
+ | |||
+ | This behavior sends these state machine events. If behavior has non-empty identifier replace '' | ||
+ | |||
+ | ===== hitScan.done ===== | ||
+ | |||
+ | Hit scan finished and the results can be examine now. | ||
====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
Line 169: | Line 187: | ||
* [[behavior_component|ECBehaviorComponent]]: | * [[behavior_component|ECBehaviorComponent]]: | ||
* [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
+ | * [[behavior_statemachine|ECBehaviorStateMachine]]: | ||
====== Persistency ====== | ====== Persistency ====== | ||
Line 224: | Line 243: | ||
are a list of bits to set. --> | are a list of bits to set. --> | ||
<string name=' | <string name=' | ||
+ | | ||
+ | <!-- optional: use behavior tree with id instead of empty string --> | ||
+ | <string name=' | ||
+ | | ||
+ | <!-- optional: use state machine with id instead of empty string --> | ||
+ | <string name=' | ||
<!-- set element properties. omit property prefix if used inside behavior tag --> | <!-- set element properties. omit property prefix if used inside behavior tag --> |