Increase an object draw distance
#1

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.
Reply
#2

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.
Reply
#3

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


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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)