Update VFX authored by Lxlp's avatar Lxlp
[< Back to mechanic page](/Skills/Mechanics#vfx-mechanics) [< Back to mechanic page](/Skills/Mechanics#vfx-mechanics)
## Description ## Description
Assign or remove a VFX from an entity or a projectile. Assign or remove a VFX from an entity or a projectile.
The VFX will automatically be spawned and move with the target. The VFX will automatically be spawned and move with the target.
Similarly, the VFX will despawn when the target is removed. Similarly, the VFX will despawn when the target is removed.
## Attributes ## Attributes
| Attribute | Aliases | Description | Type | Default | | Attribute | Aliases | Description | Type | Default |
|-----------|---------------|-------------------------------------------------------------------------------------------|---------|---------| |-----------|---------------|-------------------------------------------------------------------------------------------|---------|---------|
...@@ -18,15 +18,14 @@ Similarly, the VFX will despawn when the target is removed. ...@@ -18,15 +18,14 @@ Similarly, the VFX will despawn when the target is removed.
| enchant | en | Whether the vfx should be enchanted | Boolean | False | | enchant | en | Whether the vfx should be enchanted | Boolean | False |
| bvisible | bv | Is the base entity visible by default.<br/>Has no effect when the target is a projectile. | Boolean | true | | bvisible | bv | Is the base entity visible by default.<br/>Has no effect when the target is a projectile. | Boolean | true |
Examples
--------
## Examples
#### Applying VFX to a projectile: #### Applying VFX to a projectile:
This will spawn a projectile using the `fire_bolt` bone model from `weapon_vfx` model blueprint. This will spawn a projectile using the `fire_bolt` bone model from `weapon_vfx` model blueprint.
```yaml ```yaml
Skills: Skills:
- projectile{v=20;i=1;hR=0.25;vR=0.25;hnp=true; - projectile{v=20;i=1;hR=0.25;vR=0.25;hnp=true;
oS=[ oS=[
- vfx{mid=weapon_vfx;pid=fire_bolt} - vfx{mid=weapon_vfx;pid=fire_bolt}
... ...
......