CollisionProjectileTrigger ​
Inherits: ProjectileTrigger < RefCounted
Collision-based trigger strategy - updated for InteractableObject support
Variables ​
CollisionLayerUtility.HitMode | hit_mode | CollisionLayerUtility.HitMode.TARGET_ONLY |
int | pierce_count | 0 |
bool | stop_on_world_hit | true |
bool | stop_on_target_hit | true |
Array[Variant] | targets_hit | [] |
int | hits_remaining | 0 |
Methods ​
void | configure_collision_trigger( new_hit_mode: CollisionLayerUtility.HitMode, new_pierce_count: int = 0, new_stop_on_world: bool = true, new_stop_on_target: bool = true ) |
Variable descriptions ​
CollisionLayerUtility.HitMode hit_mode = CollisionLayerUtility.HitMode.TARGET_ONLY ​
Hit mode from ProjectileEffect
int pierce_count = 0 ​
Pierce count (0 = stop on first, -1 = infinite, >0 = pierce X targets)
bool stop_on_world_hit = true ​
Whether to stop when hitting world objects
bool stop_on_target_hit = true ​
Whether to stop when hitting the intended target
Array[Variant] targets_hit = [] ​
Targets that have been hit by this projectile (Entity or InteractableObject)
int hits_remaining = 0 ​
Number of hits remaining (for pierce tracking)
Method descriptions ​
void configure_collision_trigger( new_hit_mode: CollisionLayerUtility.HitMode, new_pierce_count: int = 0, new_stop_on_world: bool = true, new_stop_on_target: bool = true ) ​
Configure collision trigger (called by ProjectileEffect)