open.mp forum
[Plugin] [Streamer] [Solved] Dynamic objects don't appear up close - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Plugin] [Streamer] [Solved] Dynamic objects don't appear up close (/showthread.php?tid=2065)



[Streamer] [Solved] Dynamic objects don't appear up close - Radical - 2021-05-30

https://pasteboard.co/K4j0DCO.png



https://pasteboard.co/K4j1oBD.png





Some of code objects:

Code:
tmpobjid = CreateDynamicObject(19376, 666.860229, 2532.298583, -90.541076, 0.000000, 90.000000, 0.000000,-1, 13, -1, 300.0, 300.00);

SetDynamicObjectMaterial(tmpobjid, 0, 14387, "dr_gsnew", "la_flair1", 0x00000000);

tmpobjid = CreateDynamicObject(19376, 656.362854, 2541.928710, -90.541076, 0.000000, 90.000000, 0.000000,-1, 13, -1, 300.0, 300.00);

SetDynamicObjectMaterial(tmpobjid, 0, 14387, "dr_gsnew", "la_flair1", 0x00000000);

tmpobjid = CreateDynamicObject(19376, 656.361816, 2532.298339, -85.407066, 0.000000, 90.000000, 0.000000,-1, 13, -1, 300.0, 300.00);

SetDynamicObjectMaterial(tmpobjid, 0, 14708, "labig1int2", "ab_mottleGrey", 0x00000000);

tmpobjid = CreateDynamicObject(19377, 651.220458, 2541.876708, -90.456871, 0.000000, 0.000000, 0.000000,-1, 13, -1, 300.0, 300.00);



This problem is only in this map.

I don't know what the problem is.



EDIT:?https://www.burgershot.gg/showthread.php?tid=2065&pid=11339#pid11339


RE: [Streamer] Dynamic objects don't appear up close - Radical - 2021-05-31

BUMP.


RE: [Streamer] Dynamic objects don't appear up close - daddy. - 2021-05-31

You can try to deal with 'priority' argument. Put higher priority to bigger objects or objects that should load before others and put lower priority to smaller ones!

Code:
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)