Send a beacon to a specific player or allies... |
removeBeacon(sentTo); |
Parameter | Type | Mandatory | Notes | Game Version |
---|---|---|---|---|
sentTo | Number Constant | The player id who you had previously sent a beacon to. Alternatively you can send the beacon to all ALLIES. | 3.2 |
Value | Type | Notes | Game Version |
---|---|---|---|
true | Boolean | Indicates the beacon was successfully removed. | 3.2 |
false | Boolean | Indicates the beacon did not get removed. (why??) | 3.2 |
<error> | Error | Invalid parameters. | 3.2 |
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 } } |
AvailabilityRequires:
|
ContentsJump to: |
See alsoRelated articles:
|