Event Listeners
Introduction
Name
Description
📚 API Description and Example
// Calls event for every chat that players enter into the chat window
// Text that begins with ! is not displayed in the chat window,
// but can be used in the onSay function.App.onSay.Add(function(player, text) {
});
// Calls event when a player collides with another player
App.onPlayerTouched.Add(function(sender, target, x, y){
});
// Calls event when the player collides with an object
App.onObjectTouched.Add(function(sender, x, y, tileID) {
});
// Calls event when the player collides with an object with a key value
App.onAppObjectTouched.Add(function(key, sender, x, y){});
// Calls event when the player attacks another player (Z key)
App.onUnitAttacked.Add(function(sender, x, y, target) {
});
// Calls event when the player attacks an object (Z key)
App.onObjectAttacked.Add(function(sender, x, y){
});
// Calls event when an avatar attacks an object with a key value with the Z key
App.onAppObjectAttacked.Add(function (sender, x, y, layer, key) {
});onSay
Name
Type
Description
onPlayerTouched
Name
Type
Description
onObjectTouched
Name
Type
Description
onAppObjectTouched
Name
Type
Description
onUnitAttacked
Name
Type
Description
onObjectAttacked
Name
Type
Description
onSidebarTouched
Name
Type
Description
onTriggerObject
Name
Type
Description

onAppObjectAttacked
Name
Type
Description
Last updated
Was this helpful?
