CreateObject vs 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 vs CreateDynamicObject (
/showthread.php?tid=465210)
CreateObject vs CreateDynamicObject -
CesarLT - 21.09.2013
What's the difference? Does it somehow affect the script? Thanks in advance.
Re: CreateObject vs CreateDynamicObject -
knackworst - 21.09.2013
CreateDynamicObject creates a streamed object.
You can have waaay more streamed objects in a server than normal objects.
(That's pretty much what a streamer does)
Re: CreateObject vs CreateDynamicObject -
DanishHaq - 21.09.2013
CreateDynamicObject is a streamer which you can say is an unlimited amount of objects because it streams them only when the player is near the area.
CreateObject has a limit of around 5,000 objects (I think) and is shown all the time which can cause lag.
I'd highly recommend CreateDynamicObject because you can have an unlimited amount of objects and can prevent FPS lag.
Re: CreateObject vs CreateDynamicObject -
CesarLT - 21.09.2013
Quote:
Originally Posted by knackworst
CreateDynamicObject creates a streamed object.
You can have waaay more streamed objects in a server than normal objects.
(That's pretty much what a streamer does)
|
I see, so it doesn't affect lag somehow?
Re: CreateObject vs CreateDynamicObject -
DanishHaq - 21.09.2013
Quote:
Originally Posted by CesarLT
I see, so it doesn't affect lag somehow?
|
I've spoken about that in my reply, read that one, it's a bit more explained too.
Re: CreateObject vs CreateDynamicObject -
knackworst - 21.09.2013
Quote:
Originally Posted by DanishHaq
I've spoken about that in my reply, read that one, it's a bit more explained too.
|
True :/
BTW if you would like to create maps to be shown in the class selection you will have to use the regular CreateObject though, that should be the only time you use the regular CreateObject
Re: CreateObject vs CreateDynamicObject -
Konstantinos - 21.09.2013
Quote:
Originally Posted by knackworst
True :/
BTW if you would like to create maps to be shown in the class selection you will have to use the regular CreateObject though, that should be the only time you use the regular CreateObject
|
Not really.
Quote:
|
Originally Posted by Streamer Plugin
Use Streamer_UpdateEx to preload items before setting a player's position or to stream items under OnPlayerRequestClass.
|
Re: CreateObject vs CreateDynamicObject -
Bingo - 21.09.2013
CreateDynamicObject is good, As that guy said it creates streamed objects. Use the streamer plugin and it doesn't gives us lag because normally when the user connects the maps are loaded and the server lags like shit, So this streaming objects are visible only when the user is near to the object at acurate distance.