paksisoma Posted June 1 Share Posted June 1 Hello! For some reason, after setting the LOD distance value, I can only reach a maximum of 325. Is there a way to increase the LOD distance to 1500? outputChatBox(engineGetModelLODDistance(9684)) -- Returns 1500 engineSetModelLODDistance(9684, 1500) outputChatBox(engineGetModelLODDistance(9684)) -- Returns 325 Link to comment
βurak Posted June 2 Share Posted June 2 (edited) The object ID you use in your code cannot be used in mta, maybe that is why these inconsistencies Edited June 2 by Burak5312 Link to comment
paksisoma Posted June 3 Author Share Posted June 3 What about this? outputChatBox(engineGetModelLODDistance(17469)) -- Returns 399 engineSetModelLODDistance(17469, 399) outputChatBox(engineGetModelLODDistance(17469)) -- Returns 325 Link to comment
βurak Posted June 3 Share Posted June 3 I think this function takes into account things like the player's video settings and the size of the object, so try to set a low value. from wiki Quote However, there is a general draw distance limit of 300 units. So engineSetModelLODDistance(1337,400) will mean model 1337 will be visible up to a distance of 300 units no matter what the 'Video' tab says. Therefore, unless it's really important, engineSetModelLODDistance should not be set to anything greater than 170. 170 will still give the maximum draw distance (of 300 units) on clients that have a 'Video' tab draw distance setting of 100%, and it will help reduce lag for players who chose a lower draw distance in their settings. Link to comment
AngelAlpha Posted June 14 Share Posted June 14 Read note from wiki engineSetModelLODDistance — Multi Theft Auto: Wiki 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