Jump to content

About draw distance and so on


Antibird

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...