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 ​
float | return_speed_multiplier | 1.2 |
bool | track_moving_target | true |
float | target_arrival_threshold | 1.0 |
float | originator_arrival_threshold | 0.5 |
float | curve_intensity | 0.3 |
CollisionLayerUtility.HitMode | hit_mode | CollisionLayerUtility.HitMode.TARGET_ONLY |
int | pierce_count | -1 |
bool | stop_on_world_hit | false |
bool | stop_on_target_hit | false |
Methods ​
String | get_effect_description() |
String | get_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.