19.08.2013, 01:05
Is there an easy way of setting every function drawdistance to any value.
For example the object streamer function, CreateDynamicObject:
You could see that the default value for the 'streamdistance' is 200.0, is there an easy way of just setting al Objects to an other streamdistance, instead of setting it up in every function. Maybe something like hooking the function?
I know i can make it simpler to use a define and do this:
But i think it's possible to do it on an other method, something like hooking that value and set it to all the CreateDynamicObject's.
For example the object streamer function, CreateDynamicObject:
pawn Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0);
I know i can make it simpler to use a define and do this:
pawn Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, .streamdistance = MAX_OBJECT_DRAW_DISTANCE);