Antibird Posted October 8, 2009 Share Posted October 8, 2009 Hello. I have some questions to ask and hope anybody can answer them. Here they are: 1. Is there any ways of increasing the draw distance for vehicles and objects? The engineSetModelLODDistance function is the only one which is suppose to do what I need, but I have some problems using that, well, it just doesn't work for me. I'm replacing the Shamal default model with some better one and it does well. Then I apply the engineSetModelLODDistance( 519, dist ) and just nothing happens. Regardless of what I use as the "dist" parameter, the plane disappears at the same distance all the time, neither 50 units, not 250 has any matter. 2. Is using getElementsWithinColShape client-side should detect objects created on server startup by *map files? Here's the code: addCommandHandler( "check", function() outputChatBox( "checking.." ) local x, y, z = getElementPosition( getLocalPlayer() ) local col = createColSphere( x, y, z, 1000 ) local elements = getElementsWithinColShape( col ) outputChatBox( "got: "..#elements ) -- outputs the number of elements inside the collision sphere for i, v in ipairs( elements ) do outputChatBox( getElementType( v ) ) end end ) and I'm always giving with "got: 0" in chatbox. 3. Not about draw distance, but still. Are MTA developers going to increase the maximum height the planes can fly at? Removing that limit of 800 units would be just great. Thankyou! Link to comment
Gamesnert Posted October 8, 2009 Share Posted October 8, 2009 1. I think engineSetModelLODDistance only works on objects. 2. Try it with a small timer. I can remember struggling with this quite some time ago. 3. This is a possibility I also would really like to see. Unfortunately, one problem appears to be that the interiors are at 1000 altitude, which appears to be the reason for the height limit. Yet, there is an option for making jetpacks go higher, so I guess this wouldn't hurt either. Link to comment
Antibird Posted October 8, 2009 Author Share Posted October 8, 2009 Thank you for answering. But: where exactly do you suggest to add timer? I've tried to make a delay between retrieving elements table in line 6 and all the rest that goes next, but result was the same: in a couple of seconds I've seen "got: 0". 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