xeon17 Posted June 27, 2016 Posted June 27, 2016 How can I edit the visible distance of some objects? engineSetModelLODDistance Doesn't work, (at least not WITH mapped objects) Tried the example from wiki. A unique GangWar gamemode waiting for you!Click here for more information.
Bean666 Posted June 27, 2016 Posted June 27, 2016 would work , it can also work with tables. if you want the objects visible from far distance then this would work. local objects = getElementsByType("object") for i, v in ipairs(objects) do local ID = getElementModel (v) if ID == 3113 then local x,y,z = getElementPosition(v) local xr,yr,zr = getElementRotation(v) setLowLODElement(v,createObject ( getElementModel(v), x,y,z,xr,yr,zr,true )) end end local id = {3113,980, --[[add more ids here]]} for i, v in pairs (id) do -- your code here -- if ID == v then etc.. end Aftermath
stefutz101 Posted June 27, 2016 Posted June 27, 2016 There is actually a limit you can't set distance bigger than 300. "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." from wiki.
Captain Cody Posted June 27, 2016 Posted June 27, 2016 If you pair a lowlod to it, it helps alot. The 300 distance is for the object itself, not the low- lod.
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