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/04 13:40] – [hitScan.check] dragonlord | dragengine:modules:dragonscript:behavior_hitscan [2025/05/11 13:39] (current) – dragonlord | ||
|---|---|---|---|
| Line 71: | Line 71: | ||
| This behavior adds these behavior tree actions if behavior tree is present. If behavior has non-empty identifier replace '' | This behavior adds these behavior tree actions if behavior tree is present. If behavior has non-empty identifier replace '' | ||
| - | ===== hitScan.start ===== | + | ===== hitScan.update  | 
| - | Start hit scans. | + | Update  | 
| ^Parameter^Value^Description^ | ^Parameter^Value^Description^ | ||
| - | |type|'' | + | |start|'' | 
|   * '' |   * '' | ||
|   * '' |   * '' | ||
| Line 88: | Line 88: | ||
| |angle.horizontal|float|Horizontal opening angle in degrees (angle across width)| | |angle.horizontal|float|Horizontal opening angle in degrees (angle across width)| | ||
| |angle.vertical|float|Vertical opening angle in degrees (angle across height)| | |angle.vertical|float|Vertical opening angle in degrees (angle across height)| | ||
| + | |stop|empty string, '' | ||
| This is an example of using this action: | This is an example of using this action: | ||
| <code xml> | <code xml> | ||
| - | <action name=' | + | <action name=' | 
| - |   < | + |   < | 
|   < |   < | ||
|   < |   < | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | ===== hitScan.stop ===== | ||
| - | |||
| - | Stop hit scans. | ||
| - | |||
| - | ^Parameter^Value^Description^ | ||
| - | |clear| |Clear hit results as if no hit has been done| | ||
| - | |||
| - | This is an example of using this action: | ||
| - | <code xml> | ||
| - | <action name=' | ||
| - |   < | ||
| </ | </ | ||
| </ | </ | ||