neves768 Posted January 11, 2014 Share Posted January 11, 2014 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
DiSaMe Posted January 14, 2014 Share Posted January 14, 2014 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
Tails Posted January 14, 2014 Share Posted January 14, 2014 Read here about the draw distance limit for objects: https://forum.multitheftauto.com/viewtopic.php?f=91&t=64432 Link to comment
neves768 Posted January 15, 2014 Author Share Posted January 15, 2014 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
neves768 Posted January 15, 2014 Author Share Posted January 15, 2014 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
Deepu Posted January 15, 2014 Share Posted January 15, 2014 Have you tried this MTA LUA FUNCTION? setLowLODElement(theElement, lowLODElement) Try it and give a reply Link to comment
Moderators IIYAMA Posted January 15, 2014 Moderators Share Posted January 15, 2014 There are limits for all custom objects, even for lowLOD elements. So: Impossible for now. Link to comment
neves768 Posted January 30, 2014 Author Share Posted January 30, 2014 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. Link to comment
Moderators IIYAMA Posted January 30, 2014 Moderators Share Posted January 30, 2014 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
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