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



object draw distance - BadJih - 01.09.2017

how to make all createdynamicobject draw distance 300?


Re: object draw distance - Abagail - 01.09.2017

All functions within the Streamer plugin have adjustable parameters. CreateDynamicObject has:
Quote:

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

Stream distance is how far away the player is before the object is "streamed" in, with draw distance being how close the player needs to actually see it. If you just want to supply a draw distance and nothing else, you can do something such as this:

pawn Код:
CreateDynamicObject(1495, 2350.0438, 3939.484, 1125.02, 0.0, 0.0, 90.0, .drawdistance = 300);



Re: object draw distance - maximthepain - 01.09.2017

Quote:
Originally Posted by Abagail
Посмотреть сообщение
All functions within the Streamer plugin have adjustable parameters. CreateDynamicObject has:


Stream distance is how far away the player is before the object is "streamed" in, with draw distance being how close the player needs to actually see it. If you just want to supply a draw distance and nothing else, you can do something such as this:

pawn Код:
CreateDynamicObject(1495, 2350.0438, 3939.484, 1125.02, 0.0, 0.0, 90.0, .drawdistance = 300);
I'm trying :
pawn Код:
CreateDynamicObject(1495, 0, 0, 0, 0.0, 0.0, 0.0, .drawdistance = 600, .streamdistance = 600);
and still some objects in one place are missing. I want them static and standing 300 meters away! not showing only when close...