anumaz Posted May 7, 2015 Share Posted May 7, 2015 Hi, I've been trying to find a way to automaticly detect LowLOD objects and thus removing them for a map manager that I'm making. Although, if you removeWorldObject something, you may encounter lowLOD objects underneath them. My question is - how would you automaticly detect if there's a lowLOD object associated to the object you want to removeWorldObject, and if so, remove it as well. I have thought of a possible attempt being getElementModel( getLowLODElement ( element theElement )) But I'd need an element to put as a variable there. I only have the object ID, not the element itself... hence the question in thread title. I need assistance! Thanks Link to comment
rtx Posted May 8, 2015 Share Posted May 8, 2015 You could loop through a list of models when your resource starts and check if the model is lowLOD by doing something like: local lowLOD = {} local obj = createObject ( 69, 0, 0, 0 ) for k=A, B do setElementModel ( obj, A ) if getLowLODElement ( obj ) then lowLOD[A] = true end end destroyElement ( obj ) Not sure if this works - in any case, hope it helps. 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