Overview
If you want to know when something you don't own is destroyed, or when map features (like trees) are destroyed, use the bind() function instead.
Avilability
Warzone 3.1 Beta 1 and above.
Excerpt |
---|
...
This event is triggered when one of your droids or structures ceases to exist due to being destroyed, recycled or demolished.
Triggered when a game object is destroyed... |
...
...
...
...
Also, if a player picks up a barrel, artefact, or claims an oil resource, this event will be called with a feature object. Note, however, that regardless of who interacts with the artefact/resource the .player
value will always be that of your script. So, you can detect when a barrel/artefact is picked up or when an oil resource is claimed but you can't determine who by.
This object will quickly be deleted from the game data so it must not be used in further API calls.
...
Return value
...
...
...
...