Skip to content

VFXSelectionOneShot ​

Inherits: VFXSelection < Resource

OneShot VFX selection - fire-and-forget effects like explosions, impacts

Properties ​

VFXSelection.VfxLocationlocationVFXSelection.VfxLocation.BASE
floatdelay_start0.0
boolfollow_target_on_deathfalse

Methods ​

Variantprepare_target_for_vfx_type( target: Variant, originator: Variant = null )
Stringget_description()
Stringget_vfx_type()
Stringget_vfx_name()

Property descriptions ​

VFXSelection.VfxLocation location = VFXSelection.VfxLocation.BASE ​

Where on the target the effect is placed.

float delay_start = 0.0 ​

How many seconds to wait before the effect starts.

bool follow_target_on_death = false ​

Continue following even if target dies

Method descriptions ​

Variant prepare_target_for_vfx_type( target: Variant, originator: Variant = null ) ​

OneShot VFX uses target as-is (no special preparation needed)

String get_description() ​

A short text about the visual effect, for the editor.

String get_vfx_type() ​

The kind of visual effect (beam, loop, one shot ...).

String get_vfx_name() ​

The name of the visual effect that is picked.