Objects streaming problem
#3

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
Reply


Messages In This Thread
Objects streaming problem - by Lidor124 - 01.12.2013, 10:29
Re: Objects streaming problem - by feartonyb - 01.12.2013, 10:39
Re: Objects streaming problem - by Konstantinos - 01.12.2013, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)