On Spell Cast Pushback
Description
Fires when an active cast has its remaining time extended by the Casting.DamagePushback system — i.e. the player took damage during the cast, CancelOnDamage is false, DamagePushback.Enabled is true, and the pushback ceiling (DamagePushback.Max) hadn't already been hit.
Fires once per damage event that successfully extended the cast (zero-damage events and over-the-cap events are skipped).
Trigger Variables
See ~onSpellCastStart for the variables (spell-name, cast-id, cast-time, cast-remaining, cast-progress).
Examples
Play a flinch sound whenever the cast is pushed back:
meteor:
Spell: true
CastTime: 4s
Casting:
CancelOnDamage: false
DamagePushback:
Enabled: true
Amount: 10t
Max: 40t
Skills:
- sound{s=entity.player.hurt} @self ~onSpellCastPushback
- projectile{...}
Aliases
~onCastPushback