Check if object was destroyed in-game
#1

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.
Reply
#2

This happens on the client only so no.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)