SA-MP Forums Archive
Indestructible Atms, how is this achieved? - 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: Indestructible Atms, how is this achieved? (/showthread.php?tid=676927)



Indestructible Atms, how is this achieved? - SkyFlare - 24.06.2020

Hey guys, I am trying to create unbreakable atm machines, after a bit of research I see you need to set the Object Material, however this isn't working as it once used to, as I can drive into it, or punch it and it breaks.
Code:
DynamicAtms[atmid][ObjectID] = CreateDynamicObject(DynamicAtms[atmid][ModelID], DynamicAtms[atmid][PosX], DynamicAtms[atmid][PosY], DynamicAtms[atmid][PosZ], 0.0, 0.0, 0.0, 0, 0, -1, 100.0);
	SetDynamicObjectMaterialText(DynamicAtms[atmid][ObjectID],0,"None",50," Arial",24,0,0,0,1);
would be nice to know how this works, thanks in advance.


Re: Indestructible Atms, how is this achieved? - jasperschellekens - 24.06.2020

You could set a timer to respawn Them occasionally


Re: Indestructible Atms, how is this achieved? - Kane - 24.06.2020

https://dev.prineside.com/en/gtasa_s...24-kmb_atm1_2/

Object model ID 19324
Has collision Yes
Breaks on hit No


Re: Indestructible Atms, how is this achieved? - SkyFlare - 24.06.2020

Quote:
Originally Posted by Kane
View Post
https://dev.prineside.com/en/gtasa_s...24-kmb_atm1_2/

Object model ID 19324
Has collision Yes
Breaks on hit No
You legend! imma use this website often! thats awesome