SA-MP Forums Archive
Increase an object draw distance - 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: Increase an object draw distance (/showthread.php?tid=529668)



Increase an object draw distance - StyleAbrams - 03.08.2014

Hello,

Код:
    
    if(strcmp(cmdtext,"/flare",true) == 0)
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        CreateDynamicObject(18728, x, y, z - 1, 0, 0, 0, -1, -1, -1, 300.0, 300.0);
        return 1;
    }
I want to increase the draw distance of the object ID "18728" (it is a flare), the problem with this object is that he has a lesser draw distance than the other objects, and I want to increase this draw distance.
I tried to put the draw distance and the stream distance at 300.0 (the maximum) but it do nothing.

Looks like this object doesn't care of the draw distance parameters.

Thank you very much for your future help and sorry for my bad english.


Re: Increase an object draw distance - Rifa4life - 03.08.2014

Instead of using CreateDynamicObject, you might as well try using CreateObject, the default function.
Also, note that the draw distance is unlimited since 0.3x. You can set it to whatever you want it to be, not necessarily 300.

You also might wanna update your streamer, because it may be a version from before the introduction of 0.3x.


Re: Increase an object draw distance - Pottus - 03.08.2014

Will not work, this is a dynamic object and limited by it's own properties.


Re: Increase an object draw distance - f0cus - 07.03.2015


Why this is happening ? These objects have 1200 stream distance, and all are dynamic.


Re: Increase an object draw distance - ReshiramZekrom - 07.03.2015

That's because the streamer can stream only 500 object together by default.. Try to put this in OnFilterScriptInit or GameModeInit:

pawn Код:
Streamer_MaxItems(STREAMER_TYPE_OBJECT , 800);
Streamer_VisibleItems(STREAMER_TYPE_OBJECT , 800);
However next time open a new topic instead bumping and old topic