SA-MP Forums Archive
Object Loading Problem. - 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: Object Loading Problem. (/showthread.php?tid=411491)



Object Loading Problem. - M3mPHi$_S3 - 29.01.2013

Hi again soory for disturbing you all again and again but i have alot of objects on my server So the problem is this that i cant watch them from long distance i mean only when i almost to be in-touch with them then i can see . Far from a mile it look like invisible.


Re: Object Loading Problem. - iSkull - 29.01.2013

Maybe, It has something to do with your Gta sa draw distance?

That happened to me once, try to set your draw distance to the top from your Gta sa settings


Re: Object Loading Problem. - Madeline - 29.01.2013

In your streamer settings, set the max. Draw back distance between each object and a person


Re: Object Loading Problem. - M3mPHi$_S3 - 29.01.2013

Quote:
Originally Posted by Madeline
Посмотреть сообщение
In your streamer settings, set the max. Draw back distance between each object and a person
From where can i set it ?


Re: Object Loading Problem. - Threshold - 29.01.2013

There is a parameter on each of the CreateDynamicObject or CreateObject lines.

Код:
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance);
Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0);
native DestroyDynamicObject(objectid);
As you can see, there is a parameter on both called 'streamdistance' or 'DrawDistance', this is basically the distance between the player and the object before it can be seen. A float of about 200 is a good size, unless you are wanting it larger than so.