Other great resources: Official JS API docs, Scripting Forum
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 13 Next »
bind(functionName, gameObject);
undefined
To detect when your own objects are destroyed, use eventDestroyed() instead.
This function is useful because you can use it on objects owned by other players, and even destroyable features like trees.
Your function will be triggered immediately before the game object is removed from the map.
function certainDeath(gameObject) { // do stuff } bind("certainDeath", someObject); // where someObject is any Game Object
Requires:
Jump to:
Related articles: