Skip to content

BoomerangProjectileEffect ​

Inherits: BaseProjectileEffect < CompositeEffect < Effect < DatabaseResource < Resource

Boomerang projectile effect - travels to target then returns to caster Only supports collision triggers (destination/timer would break return mechanic)

Properties ​

floatreturn_speed_multiplier1.2
booltrack_moving_targettrue
floattarget_arrival_threshold1.0
floatoriginator_arrival_threshold0.5
floatcurve_intensity0.3
CollisionLayerUtility.HitModehit_modeCollisionLayerUtility.HitMode.TARGET_ONLY
intpierce_count-1
boolstop_on_world_hitfalse
boolstop_on_target_hitfalse

Methods ​

Stringget_effect_description()
Stringget_editor_description()

Property descriptions ​

Boomerang Settings

float return_speed_multiplier = 1.2 ​

Speed multiplier on return journey

bool track_moving_target = true ​

Track target during outbound phase

float target_arrival_threshold = 1.0 ​

Distance to target before returning

float originator_arrival_threshold = 0.5 ​

Distance to originator to complete

Curve Settings

float curve_intensity = 0.3 ​

Curve intensity (0.0 = straight, 1.0 = pronounced curve)

Collision Settings

CollisionLayerUtility.HitMode hit_mode = CollisionLayerUtility.HitMode.TARGET_ONLY ​

What the projectile hits on its way (the target only, enemies, anyone ...).

int pierce_count = -1 ​

Default to infinite piercing for boomerangs

bool stop_on_world_hit = false ​

Usually want boomerangs to continue

bool stop_on_target_hit = false ​

Continue past target to return

Method descriptions ​

String get_effect_description() ​

The text of the effect for tooltips, with its values filled in.

String get_editor_description() ​

A short text for the effect editor that says what the effect does.