Skip to content

VFXSelectionLoop ​

Inherits: VFXSelection < Resource

Loop VFX selection - continuous effects like auras, channeling

Properties ​

VFXSelection.VfxLocationlocationVFXSelection.VfxLocation.BASE
boolauto_stop_on_entity_deathtrue
ProjectileMeshSourceprojectile_mesh_sourceProjectileMeshSource.EFFECT
intprojectile_mesh_item_id0
boolprojectile_mesh_fit_lengthtrue
boolprojectile_mesh_keep_materialstrue

Methods ​

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

Enumerations ​

enum ProjectileMeshSource ​

Where the mesh of the PROJECTILE of the effect comes from (for an effect that has a projectile mesh: the arrows, the spears, the thrown axes and knives).

  • EFFECT = 0 - The mesh the effect was made with.
  • ITEM = 1 - The mesh of one item (picked below).
  • EQUIPPED_WEAPON = 2 - The weapon the user holds (its projectile model, or its item model).
  • AMMO = 3 - The ammo the ability spends (an arrow for a bow); the equipped ammo, then the ammo model of the weapon, when none was spent.

Property descriptions ​

VFXSelection.VfxLocation location = VFXSelection.VfxLocation.BASE ​

Where on the target the effect is placed.

bool auto_stop_on_entity_death = true ​

Stop loop VFX when attached entity dies

Projectile Mesh

ProjectileMeshSource projectile_mesh_source = ProjectileMeshSource.EFFECT ​

Where the mesh of the projectile comes from. The effect keeps its own mesh when the source has none to give.

int projectile_mesh_item_id = 0 ​

The item whose mesh is the projectile, when the source is Item.

bool projectile_mesh_fit_length = true ​

True: the mesh is scaled to the length of the mesh the effect was made with (a spear that is a bit longer than a spear). False: it keeps its own size.

bool projectile_mesh_keep_materials = true ​

True: the mesh keeps its own materials. False: it gets the material of the effect (a glowing weapon).

Method descriptions ​

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

Loop 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.