SetObjectMaterial lowers 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: SetObjectMaterial lowers draw distance? (
/showthread.php?tid=626454)
SetObjectMaterial lowers draw distance? -
Amads - 15.01.2017
Here's the problem... after using SetObjectMaterial on some objects they simply don't appear till you are close to them, and that is a real pain in the arse, as I'm trying to create a textured DM map.
Screens:
http://imgur.com/a/0WPKI
Is there any way to fix it?
Re: SetObjectMaterial lowers draw distance? -
Vince - 15.01.2017
The maximum draw distance in GTA SA is 300 units. SA-MP has done some rigamarole to extend that range but perhaps that effect gets cancelled if the texture is changed.
Re: SetObjectMaterial lowers draw distance? -
Amads - 08.04.2018
Bump (yeah...)
Is there any way to fix this?
Here's a video preview of the problem:
https://www.youtube.com/watch?v=WwGjRi9t2x4
// edit:
Yeah, I've found a fix, by using CreateDynamicObject with
Floattreamdistance and/or
Float:drawdistance, like this:
Code:
CreateDynamicObject(10832, -212.6065, 51.0670, 61.5299, 0.0000, 26.5000, 0.0000, -1, -1, -1, 300, 300);