Skip to content

VFXSelectionBeam ​

Inherits: VFXSelection < Resource

Beam VFX selection - direct beam/chain effects between targets Used for lightning chains, laser beams, tethers, energy links

Properties ​

floatbeam_width1.0
floatcurve_intensity0.0
boolfollow_target_movementtrue
VFXSelection.VfxLocationstart_attachmentVFXSelection.VfxLocation.BASE
VFXSelection.VfxLocationend_attachmentVFXSelection.VfxLocation.BASE
booluse_custom_offsetsfalse
Vector3start_offsetVector3.ZERO
Vector3end_offsetVector3.ZERO
boolsupports_chainingfalse
intmax_chain_targets3
floatchain_range5.0
boolpersist_on_target_deathfalse

Methods ​

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

Property descriptions ​

float beam_width = 1.0 ​

Width/thickness of the beam

float curve_intensity = 0.0 ​

How much the beam curves (0 = straight line)

bool follow_target_movement = true ​

Update beam when targets move

VFXSelection.VfxLocation start_attachment = VFXSelection.VfxLocation.BASE ​

Where beam starts on originator

VFXSelection.VfxLocation end_attachment = VFXSelection.VfxLocation.BASE ​

Where beam ends on target

bool use_custom_offsets = false ​

Use custom Vector3 offsets instead of attachment points

Vector3 start_offset = Vector3.ZERO ​

Custom offset from start entity

Vector3 end_offset = Vector3.ZERO ​

Custom offset from end entity

bool supports_chaining = false ​

Can chain between multiple targets

int max_chain_targets = 3 ​

Maximum number of targets to chain to

float chain_range = 5.0 ​

Maximum range for chaining to next target

bool persist_on_target_death = false ​

Continue beam even if target dies

Method descriptions ​

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

Override to handle beam-specific target preparation

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.

Dictionary get_beam_config() ​

Get beam configuration for VFXPointToPointBeam

Dictionary get_chain_config() ​

Get chain configuration for VFXPointToPointBeam

Dictionary get_attachment_config() ​

Get attachment configuration for VFXPointToPointBeam