Event Handlers
Last updated
Last updated
onCharacterMove(int)
Called any time a character moves
addEventHandler("onCharacterMove", function(entityId)
onCharacterSpawn(int)
Called when any character spawns in
addEventHandler("onCharacterSpawn", function(entityId)
onCharacterDestroy(int)
Called when any character is destroyed
addEventHandler("onCharacterDestroy", function(entityId)
onPlayerJoin(int)
Called when a player joins the server
addEventHandler("onPlayerJoin", function(connectionId)
onChatMessage(int, string)
Called when a player sends a chat message
addEventHandler("onChatMessage", function(entityId)
onPlayerQuit(int, string)
Called when a player leaves the server
addEventHandler("onPlayerLeave", function(connectionId, reason)
onUpdate(float)
Called every server tick
addEventHandler("onUpdate", function(delta)