VFXSelectionBeam ​
Inherits: VFXSelection < Resource
Beam VFX selection - direct beam/chain effects between targets Used for lightning chains, laser beams, tethers, energy links
Properties ​
float | beam_width | 1.0 |
float | curve_intensity | 0.0 |
bool | follow_target_movement | true |
VFXSelection.VfxLocation | start_attachment | VFXSelection.VfxLocation.BASE |
VFXSelection.VfxLocation | end_attachment | VFXSelection.VfxLocation.BASE |
bool | use_custom_offsets | false |
Vector3 | start_offset | Vector3.ZERO |
Vector3 | end_offset | Vector3.ZERO |
bool | supports_chaining | false |
int | max_chain_targets | 3 |
float | chain_range | 5.0 |
bool | persist_on_target_death | false |
Methods ​
Variant | prepare_target_for_vfx_type( target: Variant, originator: Variant = null ) |
String | get_description() |
String | get_vfx_type() |
String | get_vfx_name() |
Dictionary | get_beam_config() |
Dictionary | get_chain_config() |
Dictionary | get_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