Skip to main content

Vfx

Vfx feedback spawns a prefab on the target, or on one of its body parts: a hit spark, a heal glow, a shield flash. It is the Feedback family for particle effects and other visuals.

Vfx feedback​

FieldDescription
IgnoreSpawns nothing for this case.
PrefabThe VFX prefab.
OriginThe body part (Actor Part Id) it spawns at. None, or a part the Actor doesn't have, uses the Actor's own transform.
Attach To OriginParents it to the origin so it follows the Actor.
OffsetWorld-space offset from the origin.
FacingRotation from the origin, target forward, source forward, source-to-target, target-to-source, or a Stat direction.
Facing DirectionA StatFrom direction, used when Facing is Stat Direction.
Project Facing On GroundProjects a non-origin facing direction onto the horizontal plane. A missing or zero direction falls back to the origin rotation.
LifetimeSeconds before it is destroyed. 0 leaves it to the prefab (a particle system with Stop Action: Destroy).
ConditionsOptional Effect Conditions, all must pass; Target is the Actor the VFX spawns on (e.g. skip a dead target).

A prefab that needs to know the Effect that spawned it — a beam from the attacker to the victim, a chain-lightning arc — implements IEffectVfxSpawnListener on its root and gets the Source, Target, Effector and Environment.

Variants​

VariantAdds
Value-carrying (_Float, _Int)Ignore Zeroes and per target Stat Positive Vfxs / Negative Vfxs + Fallback Positive Vfx / Fallback Negative Vfx.
ASPicks a VFX per Attribute Stat: Default Vfx + Attribute Stat Specific Vfxs — a fire hit and an ice hit on the same Health.
MASMatches the exact ordered list of Attribute Stats.

An exact Result Attribute entry wins; otherwise the most specific matching flag subset wins before fallback. See How a case is chosen.

Combining VFX​

The processor's Combine field selects how matching visuals are played:

ModeBehavior
Best MatchPlays the exact Result Attribute entry when present, otherwise the most specific matching subset, then fallback. An AS/MAS Attribute Stat-specific VFX replaces that case's default VFX.
AdditivePlays the None entry as a base (or the fallback when no base is configured), plus every nonzero entry whose flags are contained in the result. For AS/MAS cases, the default and matching Attribute Stat-specific VFX play together.

For a Critical | Explosive hit, Additive can play the base hit spark, critical flash and explosion together. A combined Critical | Explosive entry also plays if configured; it does not suppress the individual layers. Conditions and Ignore still apply to each VFX.

Examples​

GoalSetup
A spark on every hit, a blue flash when a shield absorbs itBSFeedback_Vfx_Float: Health → Negative: None = spark, ShieldBlock = shield flash, Shielded = both visuals in one prefab.
Fire hits burn, ice hits freezeAn AS Vfx feedback on Health: Attribute Stat Specific Vfxs with Fire = flames, Ice = frost, Default Vfx = spark.