Skip to content

VFXSelectionTransformation ​

Inherits: VFXSelection < Resource

Transformation VFX selection - temporary visual transformations for entities TODO This needs work or removal

Properties ​

VFXTransformation.TransformationTypetransformation_typeVFXTransformation.TransformationType.SCALE
floatblend_time0.3
Vector3scale_factorVector3(1.5, 1.5, 1.5)
Stringskeleton_scene_path""
Stringweapon_mesh_path""
Stringweapon_slot"main_hand"

Methods ​

Array[VFX]spawn_vfx( vfx_manager: VFXManager, target: Variant = null, originator: Variant = null, timer: Timer = null )
Variantprepare_target_for_vfx_type( target: Variant, originator: Variant = null )
Stringget_description()
Stringget_vfx_type()
Stringget_vfx_name()
Dictionaryget_transformation_config()
boolis_valid_config()

Property descriptions ​

VFXTransformation.TransformationType transformation_type = VFXTransformation.TransformationType.SCALE ​

Which change of look (a change of scale ...).

float blend_time = 0.3 ​

Time to blend to/from transformation

Scale Transformation

Vector3 scale_factor = Vector3(1.5, 1.5, 1.5) ​

Scale multiplier

Polymorph Transformation

String skeleton_scene_path = "" ​

Path to new skeleton scene

Weapon Swap

String weapon_mesh_path = "" ​

Path to new weapon mesh

String weapon_slot = "main_hand" ​

Which weapon slot: "main_hand" or "off_hand"

Method descriptions ​

Array[VFX] spawn_vfx( vfx_manager: VFXManager, target: Variant = null, originator: Variant = null, timer: Timer = null ) ​

Override spawn method - Transformation VFX returns empty array since it doesn't create VFX nodes

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

Checks and converts the target for this kind of visual effect (it needs an entity).

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_transformation_config() ​

Get transformation configuration for VFXTransformation class

bool is_valid_config() ​

Validate the transformation configuration