..:D&G:.. Posted February 22, 2016 Share Posted February 22, 2016 Hey, I just came accross this event that kinda comes in really helpful which is onElementDestroy but I have a question. Is there anyway to make it so the function executes something only if the element was destroy somehow by a player? I mean, I am doing a small function for my logs, and when a vehicle is destory, it should be recorded in the logs, but I only want to record it in, only if the vehicle was destroy by the script and not by a player that executed a command. Dunno if this is possible, I thought maybe it is like onPlayerQuit, from which you can get the reason the player quit... Anyway.. Thanks. Link to comment
tosfera Posted February 22, 2016 Share Posted February 22, 2016 the event is only triggered when the resource has been stopped or destroyElement has been used. I don't think that there is a way to see how the object has been destroyed.. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now