Objects streaming problem - 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 streaming problem (
/showthread.php?tid=478786)
Objects streaming problem -
Lidor124 - 01.12.2013
on tutorial objects are missing from a distance about 20 meters and when i walk as player in the street objects are missing about 30 meter distance
how to fix that?
Re: Objects streaming problem -
feartonyb - 01.12.2013
Use object streamer,
then incrase distance:
Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0);
Default is 200.0, change it to whatever you want.
Re: Objects streaming problem -
Konstantinos - 01.12.2013
Streamer distance differs from draw distance. All you want to do is to use draw distance and it's possible with dynamic objects.
pawn Код:
stock AddDynamicObject( modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 300.0, Float: drawdistance = 300.0 )
{
new objectid = CreateDynamicObject( modelid, x, y, z, rx, ry, rz, worldid, interiorid, playerid, streamdistance );
Streamer_SetFloatData( STREAMER_TYPE_OBJECT, objectid, E_STREAMER_DRAW_DISTANCE, drawdistance );
return objectid;
}
And just replace any CreateObject and CreateDynamicObject with AddDynamicObject. By default, the draw distance is 300.0