OnObjectDestroyed
From Onset Developer Wiki
Description
Event called when an object instance was destroyed through DestroyObject.
Syntax
OnObjectDestroyed(vehicle)
Parameters
- object
The object which was destroyed.
Example
function OnObjectDestroyed(object)
print("Object "..object.." was destroyed")
end
AddEvent("OnObjectDestroyed", OnObjectDestroyed)