Enchant

Fires when a Player researches an Enchant.
Example usage:
Events.Enchant(function(event)
-- Play the Learn Fire sound if a player receives a Fire 3 Enchant
if (event.enchant == EnchantType.FIRE_3) then
SoundService.playSound(Sound.WHIM_LEARN_FIRE)
end
end)

Parameters

player: Player

The player who researched the enchant.

enchant: EnchantType

Type of enchant researched by the player.

cancelled: bool [modifiable]

If set to true, the enchant research will be cancelled.