SA-MP Forums Archive
CreateObject or CreateDynamicObject ? - 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: CreateObject or CreateDynamicObject ? (/showthread.php?tid=598893)



CreateObject or CreateDynamicObject ? - Belengher - 18.01.2016

SA-MP.COM Hello !

I would like to ask of you is best in terms of quality and script ? CreateObject or CreateDynamicObject ?


Sorry for my bad english..


Re: CreateObject or CreateDynamicObject ? - davve95 - 18.01.2016

If I remember correct, CreateDynamicObject are used for steamers.


Re: CreateObject or CreateDynamicObject ? - Belengher - 18.01.2016

So I understand that CreateObject is better?


Re: CreateObject or CreateDynamicObject ? - AndreiWow - 18.01.2016

CreateObject will never dissapear from the server, but CreateDynamicObject will dissapear if you walk away and appear if you aproach it, CreateObject has a maximum number like 1000 objects I think, but CreateDynamicObject is unlimited.

I recommend you to use CreateDynamicObject for mapping things that won't move and use CreateObject for gates/doors, thats what I do, you can use DynamicObject for gates too.


Re: CreateObject or CreateDynamicObject ? - Belengher - 18.01.2016

Thanks!


Re: CreateObject or CreateDynamicObject ? - itsCody - 18.01.2016

CreateObject for custom interiors as if you enter an interior and it isn't streaming in fast enough with CreateDynamicObject you or the player will fall through the map.