SA-MP Forums Archive
[HELP] 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: [HELP] Object draw distance. (/showthread.php?tid=650167)



[HELP] Object draw distance. - Davidmkd123 - 22.02.2018

Hello guys, so i made a "createdynamicobject" in virtual world / interior, and the drawdistance is very low, i tried to
change it to higher and lower, but ingame nothing changes with it.

Code:
ApartmentInfo[i][aObj2] = CreateDynamicObject(ApartmentInfo[i][aMebel2], ApartmentInfo[i][aMebel2X], ApartmentInfo[i][aMebel2Y], ApartmentInfo[i][aMebel2Z], 0.00, 0.00, 0.00, ApartmentInfo[i][aVW], ApartmentInfo[i][aInterior], -1, -1, -1, -1, 300);
Can you guys help??




Re: [HELP] Object draw distance. - David (Sabljak) - 22.02.2018

Maybe problem with object?

Try this, if not work object problem.

Code:
ApartmentInfo[i][aObj2] = CreateDynamicObject(ApartmentInfo[i][aMebel2], ApartmentInfo[i][aMebel2X], ApartmentInfo[i][aMebel2Y], ApartmentInfo[i][aMebel2Z], 0.00, 0.00, 0.00, ApartmentInfo[i][aVW], ApartmentInfo[i][aInterior], -1, 100.0, 100.0, -1, 0);
100 draw/streamer distance is enough for interior, if you need more set max to 600.0.


Re: [HELP] Object draw distance. - Davidmkd123 - 22.02.2018

Quote:
Originally Posted by David (Sabljak)
View Post
Maybe problem with object?

Try this, if not work object problem.

Code:
ApartmentInfo[i][aObj2] = CreateDynamicObject(ApartmentInfo[i][aMebel2], ApartmentInfo[i][aMebel2X], ApartmentInfo[i][aMebel2Y], ApartmentInfo[i][aMebel2Z], 0.00, 0.00, 0.00, ApartmentInfo[i][aVW], ApartmentInfo[i][aInterior], -1, 100.0, 100.0, -1, 0);
100 draw/streamer distance is enough for interior, if you need more set max to 600.0.
+rep, you have no f'ckin idea how much you just helped me.


Re: [HELP] Object draw distance. - David (Sabljak) - 22.02.2018

Quote:
Originally Posted by Davidmkd123
View Post
+rep, you have no f'ckin idea how much you just helped me.
No problem , im glad to hear that.