Language

onKill


onKill()

Description

onKill() is a callback function called when the player lose the game.


Examples

Play a sound on death

  1. function onKill()
  2.     Sound.play("ohnoes.ogg", true)
  3. end