SA-MP Forums Archive
objects - 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: objects (/showthread.php?tid=301155)



objects - Brka - 03.12.2011

if anyone knows how to create objects that we see from a distance, not like now that we show up when I come with them....because I had a lot of objects all of them deployed in 4 FilterScripts ... it has accelerated the appearance but still slow...and on many servers there are more objects, and all are seen immediately, and not like me to appear when I come with them

sorry for my bad English i am from Bosnia





Re: objects - Danyal - 03.12.2011

which object streamer are you using......?


Re: objects - Unte99 - 03.12.2011

Quote:
Originally Posted by Danyal
Посмотреть сообщение
which object streamer are you using......?
He doesn't use a streamer, that's what he's telling you.

You have to use a streamer to have more than 500 objects in your server. I would recommend this one:

https://sampforum.blast.hk/showthread.php?tid=102865


Re: objects - Danyal - 03.12.2011

what about more than 5 thousand??


Re: objects - Kostas' - 03.12.2011

I have currently 8,000+ objects and all work fine with Incognito's Streamer


Re: objects - Brka - 03.12.2011

i use SA-MP Streamer Plugin v2.5.2


Re: objects - Zonoya - 03.12.2011

so u use Igconnito's streamer then there is a native in createDynamicObject to set the draw distance
Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 300.0);
the Underlined and bold bit is the draw distance set that on ur objects to how far u want them


Re: objects - Kostas' - 03.12.2011

Quote:
Originally Posted by Brka
Посмотреть сообщение
i use SA-MP Streamer Plugin v2.5.2
This Streamer belongs to Incognito.


Re: objects - Brka - 03.12.2011

my code when adding objects like this:

CreateDynamicObject(19054, 1210.300048, -928.400024, 42.599998, 0, 0, 0)

This is just an example


Re: objects - Kostas' - 03.12.2011

It should be like this.
pawn Код:
public OnGameModeInit()
{
    CreateDynamicObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance);
    return 1;
}
Note:
Float: DrawDistance (optional) The distance that San Andreas renders objects. 0.0 will cause objects to render at their default distances. 300.0 is the usable maximum. Usable since 0.3b.