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:
The player who researched the enchant.
enchant:
Type of enchant researched by the player.
cancelled: bool [modifiable]
If set to true, the enchant research will be cancelled.