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

Next revision
Previous revision
dragengine:modules:dragonscript:behavior_hitscan [2025/03/11 15:56] – created dragonlorddragengine:modules:dragonscript:behavior_hitscan [2025/03/13 17:06] (current) dragonlord
Line 1: Line 1:
 {{tag>dragonscript behavior}} {{tag>dragonscript behavior}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[abstractions#behavior_elementsquick_and_easy_development|Behavior Elements: Quick and Easy Development]] >> **ECBehaviorHitScan**+[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[dragengine:modules:dragonscript:abstractions|Abstraction Layers: How you want to build your Game]] >> [[dragengine:modules:dragonscript:behavior_elements|Behavior Elements]] >> **ECBehaviorHitScan**
 </WRAP> </WRAP>
  
Line 21: Line 21:
 ===== range ===== ===== range =====
 Set test range. Set test range.
-  * Full name: ''customColor.range'' or ''customColor({id}).range''+  * Full name: ''hitScan.range'' or ''hitScan({id}).range''
   * Type: float   * Type: float
   * Default Value: 20   * Default Value: 20
   * Restriction: At least 0   * Restriction: At least 0
-  * Example (*.deeclass) <code xml><float name='customColor.range'>0.5</float></code>+  * Example (*.deeclass) <code xml><float name='hitScan.range'>0.5</float></code>
  
 ===== offset ===== ===== offset =====
 Set test origin offset. Set test origin offset.
-  * Full name: ''customColor.offset'' or ''customColor({id}).offset''+  * Full name: ''hitScan.offset'' or ''hitScan({id}).offset''
   * Type: float   * Type: float
   * Default Value: 0   * Default Value: 0
   * Restriction: At least 0   * Restriction: At least 0
-  * Example (*.deeclass) <code xml><float name='customColor.offset'>0.5</float></code>+  * Example (*.deeclass) <code xml><float name='hitScan.offset'>0.5</float></code>
  
 ===== origin ===== ===== origin =====
 Set test origin. Set test origin.
-  * Full name: ''customColor.origin'' or ''customColor({id}).origin''+  * Full name: ''hitScan.origin'' or ''hitScan({id}).origin''
   * Type: 3-component float vector   * Type: 3-component float vector
   * Default Value: (0,0,0)   * Default Value: (0,0,0)
-  * Example (*.deeclass) <code xml><vector name='customColor.origin' x='0' y='0' z='0.2'/></code>+  * Example (*.deeclass) <code xml><vector name='hitScan.origin' x='0' y='0' z='0.2'/></code>
  
 ===== direction ===== ===== direction =====
 Set test direction. Set test direction.
-  * Full name: ''customColor.direction'' or ''customColor({id}).direction''+  * Full name: ''hitScan.direction'' or ''hitScan({id}).direction''
   * Type: 3-component float vector   * Type: 3-component float vector
   * Default Value: (0,0,1)   * Default Value: (0,0,1)
-  * Example (*.deeclass) <code xml><vector name='customColor.direction' x='0' y='0' z='0.2'/></code>+  * Example (*.deeclass) <code xml><vector name='hitScan.direction' x='0' y='0' z='0.2'/></code>
  
 ===== orientation ===== ===== orientation =====
 Set test orientation. Set test orientation.
-  * Full name: ''customColor.orientation'' or ''customColor({id}).orientation''+  * Full name: ''hitScan.orientation'' or ''hitScan({id}).orientation''
   * Type: 3-component float vector   * Type: 3-component float vector
   * Default Value: (0,0,0)   * Default Value: (0,0,0)
-  * Example (*.deeclass) <code xml><vector name='customColor.orientation' x='20' y='0' z='0'/></code>+  * Example (*.deeclass) <code xml><vector name='hitScan.orientation' x='20' y='0' z='0'/></code>
  
 ===== bone ===== ===== bone =====
 Set test bone. Set test bone.
-  * Full name: ''customColor.bone'' or ''customColor({id}).bone''+  * Full name: ''hitScan.bone'' or ''hitScan({id}).bone''
   * Type: string   * Type: string
   * Default Value: empty string   * Default Value: empty string
-  * Example (*.deeclass) <code xml><string name='customColor.bone'>value</string></code>+  * Example (*.deeclass) <code xml><string name='hitScan.bone'>value</string></code>
  
-===== Events =====+====== Events ======
  
 This behavior has no events This behavior has no events
Line 69: Line 69:
 ====== Required Behaviors ====== ====== Required Behaviors ======
  
-This behavior requires these other behaviors: 
   * [[behavior_collider|ECBehaviorCollider]]: Collider to attach tests to.   * [[behavior_collider|ECBehaviorCollider]]: Collider to attach tests to.
  
 ====== Optional Behaviors ====== ====== Optional Behaviors ======
  
-This behavior does support these optional behaviors: 
   * [[behavior_component|ECBehaviorComponent]]: Required if collision test has to originate from bone.   * [[behavior_component|ECBehaviorComponent]]: Required if collision test has to originate from bone.
  
dragengine/modules/dragonscript/behavior_hitscan.1741708567.txt.gz · Last modified: 2025/03/11 15:56 by dragonlord