see object from large distance.
#6

The last parameter in CreateDynamicObject is stream distance, not draw distance. However you can change the draw distance to a dynamic object by using Streamer_SetFloatData function.

For example:
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
    ;
    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;
}
You can now use draw distance as whatever value you want (by default is set to 300.0).
Reply


Messages In This Thread
see object from large distance. - by audriuxxx - 16.11.2013, 06:31
Re: see object from large distance. - by [WA]iRonan - 16.11.2013, 06:45
Re: see object from large distance. - by DaniceMcHarley - 16.11.2013, 06:48
Re: see object from large distance. - by audriuxxx - 16.11.2013, 16:04
Re: see object from large distance. - by audriuxxx - 16.11.2013, 17:58
Re: see object from large distance. - by Konstantinos - 16.11.2013, 18:02
Re: see object from large distance. - by Pottus - 16.11.2013, 18:07
Re: see object from large distance. - by Nourdin - 16.11.2013, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)