how can i creat object non-breakable ? -.- - 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: how can i creat object non-breakable ? -.- (
/showthread.php?tid=526366)
how can i creat object non-breakable ? -.- -
Metharon - 17.07.2014
Ok, so i have an dyamic mysql ATM system... the problem is:
- The player is able to destroy the object (with guns or vehicle) and the object will destroy.... but the text3d remain
how can i give infinite hp to an object , or make him non-breakable?
Re: how can i creat object non-breakable ? -.- -
Clad - 17.07.2014
If you mean ATM Objects, Then you can't, In my server I have the same issues.
Re: how can i creat object non-breakable ? -.- -
Stanford - 17.07.2014
Use another objects around it to solid it. Tested and works fine for my system.
Re: how can i creat object non-breakable ? -.- -
Clad - 17.07.2014
Use invisble Objects around it.
Re: how can i creat object non-breakable ? -.- -
Metharon - 17.07.2014
Re: how can i creat object non-breakable ? -.- -
Vince - 17.07.2014
What also may work (for guns at least) is detecting when those objects get shot in OnPlayerWeaponShot (BULLET_HIT_TYPE_OBJECT, with hitid being objectid), then quickly destroying them and recreating them. Perhaps punish player accordingly.
Re: how can i creat object non-breakable ? -.- -
Dissonancy - 17.07.2014
I think you have to set the object like if someoone maybe destroyed it then in 1 sec it will again teleport over there.