Jump to content

Objects visibility


neves768

Recommended Posts

i have this:

function xxz() 
local x,y,z = 5510.216796875,1459.1868896484,9.7500190734863 
agua = createObject(3900, x,y,z,0,0,0,false) 
engineSetModelLODDistance(3900, 1000) -- I know the MAX! 
engineSetAsynchronousLoading(true,true) 
setFarClipDistance(5000) -- I Know the MAX! 
setFogDistance(5000) -- I Know the MAX! 
end 
addEventHandler ( "onClientResourceStart", getRootElement(), xxz) 
  

I Can see all San Andreas, but modified objects (.map or createObject) not show by high distance. Any solution?

Link to comment

Only low LOD (level of detail) objects can be seen from long distances. You need to create another object and set it as low LOD counterpart of existing object using this function:

setLowLODElement 

When objects become invisible because of long distance, low LOD objects become visible.

Link to comment
Only low LOD (level of detail) objects can be seen from long distances. You need to create another object and set it as low LOD counterpart of existing object using this function:
setLowLODElement 

When objects become invisible because of long distance, low LOD objects become visible.

Not working :/ All san andreas show, but object not(ps: it's objecet visibility without aim[sniper])

Link to comment
Only low LOD (level of detail) objects can be seen from long distances. You need to create another object and set it as low LOD counterpart of existing object using this function:
setLowLODElement 

When objects become invisible because of long distance, low LOD objects become visible.

Not working :/ All san andreas show, but object not(ps: it's objecet visibility without aim[sniper])

  
function xxz() 
local x,y,z = 5510.216796875,1459.1868896484,9.7500190734863 
Naomexa = createObject(3900, x,y,z,0,0,0) 
agua = createObject(3900, x,y,z,0,0,0,true) 
setLowLODElement(Naomexa, agua) 
engineSetModelLODDistance(3900, 1000) 
setFarClipDistance(5000) 
setFogDistance(5000) 
end 
addEventHandler ( "onClientResourceStart", getRootElement(), xxz) 
  

Link to comment
  • 2 weeks later...
  • Moderators
There are limits for all custom objects, even for lowLOD elements.

So: Impossible for now. :(

It's possible. Not with MTA Functions, but with LUA functions.

Lua functions can't do anything with object's except saving their userdata's, nothing more nothing less.

While MTA functions, can change things ingame.....

Pls don't talk crap.

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...