SA-MP Forums Archive
streaming distance and drawdistance - 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: streaming distance and drawdistance (/showthread.php?tid=622574)



streaming distance and drawdistance - MerryDeer - 24.11.2016

Hi,

Dynamic object have streaming distance and drawdistance, i change both to 1000 for object and i see it from that distance, so i always change stream and draw distance? why default draw distance is 0.0?


Re: streaming distance and drawdistance - BrianFaria - 24.11.2016

There. That is, from the include.

Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 500.0);



Re: streaming distance and drawdistance - MerryDeer - 24.11.2016

CreateDynamicObject(modelid, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);


Re: streaming distance and drawdistance - BrianFaria - 24.11.2016

Modify from the include, streamer.inc
Same is rare that is a problem of that, I recommend you update your include and plugin too


Re: streaming distance and drawdistance - MerryDeer - 24.11.2016

I think you don't understand what i ask, i please to explain what mean stream and draw distances


Re: streaming distance and drawdistance - BrianFaria - 24.11.2016

This may interest you, translate it and you will see.

http://forum.sa-mp.com/showthread.ph...00#post1331200


Re: streaming distance and drawdistance - Sew_Sumi - 24.11.2016

StreamDistance would suggest it's what's streamed to your client, and drawdistance would be where it's drawn from on the client.

You could easily set up a test script from checking this out, and setting different draw distances and stream distances.


Re: streaming distance and drawdistance - MerryDeer - 24.11.2016

So drawdistance i set 1000.0 but i still see from near, how this can by?


Re: streaming distance and drawdistance - Vince - 24.11.2016

I think that the streamdistance is the distance the object is placed into memory on the client side. The drawdistance is when said object is loaded from memory and drawn on screen. Therefore: drawdistance ≤ streamdistance at all times. Again, not sure. But this seems the most logical.


Re: streaming distance and drawdistance - MerryDeer - 24.11.2016

But default drawdistance is 0.0 in streamer.inc