StatusEffectRemoved

Fires when a Status Effect is removed from an Entity.

Example usage:

Events.StatusEffectRemoved(function(event)
    if (event.statusEffect == StatusEffectType.TITANS_BLESSING) then
        local player = event.entity:getPlayer()
        if (player == nil) then
            return
        end
        SoundService.playSoundForPlayer(player, SoundType.TITAN_IDLE_4)
    end
end)

Parameters

entity: Entity

The entity that had the status effect removed from it.

statusEffect: StatusEffectType

The type of status effect that was removed from the entity.

Last updated