Check if object was destroyed in-game - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Check if object was destroyed in-game (
/showthread.php?tid=543962)
Check if object was destroyed in-game -
Spreadhaz - 30.10.2014
Hi there. I need help with this.
There is a way for detect if an object was destroyed physically? I mean, if you create a cone in game, it is destroyed by an explode or destroyed by a car crash, there is a way for detect if object was destroyed?.
When object is destroyed physically, his id is still valid as an object and his coordinates are still same, then i want to destroy his id after be destroyed by an physic event.
Re: Check if object was destroyed in-game -
Pottus - 30.10.2014
This happens on the client only so no.
Respuesta: Re: Check if object was destroyed in-game -
Spreadhaz - 30.10.2014
Quote:
Originally Posted by Pottus
This happens on the client only so no.
|
Now that you mentioned, you're right. This event only happens in a player. I thought in a callback for that. You know, like there are callbacks for a player like "OnPlayerGiveDamage".
So for while, I will set an admin command to clean all objects created in game.