Xeonmeister Posted February 14, 2016 Share Posted February 14, 2016 Is it possible to set a higher draw distance for the objects of a .map file? I'm not talking about the LOD distance nor the setfarclipdistance function. Doesn't matter what i try, the draw distance remains 300. In sa-mp you can easily set a 1000 units as draw distance. I would only need like 400-500 units, but i can't change it. Link to comment
Noki Posted February 15, 2016 Share Posted February 15, 2016 local obj = createObject(...) local lod = createObject(...) setLowLODElement(obj, lod) -- Where obj is the object and lod is the LOD object (use the LOD model id) I don't know of any way to set LOD of map objects, so I would convert part of the .map into a .lua file and use the code above for any objects you want to set the lod of. Link to comment
Saml1er Posted February 15, 2016 Share Posted February 15, 2016 This is all you need: engineSetModelLODDistance(model, 170) -- 170 is the best greater value as suggested by wiki Link to comment
Xeonmeister Posted February 15, 2016 Author Share Posted February 15, 2016 I'm not talking about the LOD distance So no, that's not what i need. I've seen objects with a greater draw distance, and even people were talking about it, that it is possible but noone knew how. I'm looking for something that would help me to change the draw distance to something over 300 units. Link to comment
Xeonmeister Posted February 15, 2016 Author Share Posted February 15, 2016 Noki i think it may actually work, but what if i have thousands of objects? The idea itself is really good but how to put it into practice? I know i should create the objects once, and then again and set the first creations' lowLOD element the same from the second creation. But how? Link to comment
Saml1er Posted February 17, 2016 Share Posted February 17, 2016 Can I know what are you trying to achieve? Link to comment
Noki Posted February 17, 2016 Share Posted February 17, 2016 I would recommend against doing it for thousands of objects as you'll be creating approximately 2 times the amount you would otherwise. I've just found the way I used works good for objects (custom and default). Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now