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
Version 1 Current »
removeBeacon(sentTo);
Number
Constant
The player id who you had previously sent a beacon to.
Alternatively you can send the beacon to all ALLIES.
true
false
var obj; function eventAttacked(victim, attacker) { if (!obj) { obj = victim; addBeacon(obj.x, obj.y, ALLIES, "I just got attacked"); // add beacon } } function eventDestroyed(victim) { if (victim.id == obj.id) { obj = null; removeBeacon(ALLIES); // remove beacon } }
Requires:
Jump to:
Related articles: