Skip to main content

UpdatingEffect

Gets called when the player is receiving an effect.

Start a script section

!-- OnEvent UpdatingEffect
-- require @evPlayer *evEffect $evIntensity $evDuration $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerEffectUpdatingEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player whose effect is being updated.
*evEffectreference to StatusEffectBase objectGets the effect that is being updated.
$evIntensitynumber valueGets or sets the new intensity of the effect.
$evDurationnumber valueGets or sets the new duration of the effect in seconds.
$evIsAllowedbool valueWhether the event is allowed to run.