object reconstruction? - 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: object reconstruction? (
/showthread.php?tid=654591)
object reconstruction? -
k2bi - 01.06.2018
Does anyone know how to rebuild when an object is broken?
Re: object reconstruction? -
BaFFyJunior - 01.06.2018
What do you mean by broken? you have a picture?
Re: object reconstruction? -
GTLS - 01.06.2018
Explain more.
Re: object reconstruction? -
NaS - 01.06.2018
You need to respawn it by simply destroying and re-creating it. That's the only way to "repair" it (eg. respawn exploded barrels or destroyed fences).
If you use the Streamer Plugin you can simply set its position to a completely different place and put it back where it was before (GetDynamicObjectPos and SetDynamicObjectPos). Should be easier than re-creating it with all information.