SaDb0y1 Posted September 21, 2012 Posted September 21, 2012 Hello. I need a script for rebuilding the destroyed objects(The objects that has been destroyed by a player). Can someone make the script?
cs8898 Posted September 21, 2012 Posted September 21, 2012 Try read that https://wiki.multitheftauto.com/wiki/OnElementDestroy and that to create an element wiki.multitheftauto.com/wiki/CreateElement have fun (all server side)
DiSaMe Posted September 21, 2012 Posted September 21, 2012 I think he talks about breakable objects. I don't know how much MTA is aware of objects being broken. Maybe you can check if it's broken using this function: getElementHealth If it doesn't help, then try something with one of these: isLineOfSightClear processLineOfSight If the object is broken, it won't block the line of sight, so if the sight becomes clear, that means the object has been broken. Then destroy the element and create it again.
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