Draw Distance
#4

I don't know if the updated version of the plugin for the 0.3z allows us to use draw distance in CreateDynamicObject function but in earlier versions (0.3x and below) it did not.

CreateDynamicObject has a lack of draw distance and the last parameter is stream distance which differs. You can use either CreateDynamicObject + Streamer_SetFloatData to set its draw distance or CreateDynamicObjectEx.

An example for the first one:
pawn Code:
stock CDO(modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 200.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, 300.0);
    return objectid;
}
Reply


Messages In This Thread
Draw Distance - by BodyBoardVEVO - 03.02.2014, 22:38
Re: Draw Distance - by ikey07 - 03.02.2014, 23:24
Re: Draw Distance - by BodyBoardVEVO - 04.02.2014, 14:27
Re: Draw Distance - by Konstantinos - 04.02.2014, 14:30
Re: Draw Distance - by Lordzy - 04.02.2014, 14:32
Re: Draw Distance - by Pottus - 04.02.2014, 14:36
Re: Draw Distance - by BodyBoardVEVO - 04.02.2014, 15:08
Re: Draw Distance - by ikey07 - 04.02.2014, 15:12
Re: Draw Distance - by Pottus - 04.02.2014, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)