600er Posted February 25, 2012 Share Posted February 25, 2012 **Hello guys! I need your help. When i remove any objects from the SA map, which are big as building (not just bins, fences) their texture is still staying there. I see the objects, but i can go thru them. So what i want is to remove their texture or sth. Heres the code for removing the objects: addEventHandler("onPlayerJoin", getRootElement(), function() removeWorldModel(8842,200,x,y,z) removeWorldModel(8839,200,x,y,z) end ) This is server side! (for 'x' , 'y' and 'z' i am using the location of the objects, and '200' is the radius) Here are some pictures of what happened: *Only the texture: *I can go thru the objects that i allready removed: * *Inside the building that should be gone: I think there should be some scripting just like the one i did but for removing the textures, but i don't know it. If there is, it would be great if you share it with me guys! Thanks alot!!! 600er Link to comment
Oz. Posted February 25, 2012 Share Posted February 25, 2012 Looks like the object's LOD is still being displayed. It's a separate model from the DFF, which you already removed, so it isn't a case of textures persisting when they shouldn't be. LODs have no collision file, which is why you can also pass through it. Try adding lines for IDs 8930 (the LOD for ID 8842) and 8931 (the LOD for ID 8839), and see if that fixes it. Link to comment
600er Posted February 25, 2012 Author Share Posted February 25, 2012 Thank you a lot Oz! That fixed the thingy, now its totally perfect. I would want to ask you one more thing. How you know which LOD for which Building is? For example if i want to delete an building, how can i find her LOD? Thanks! Link to comment
Oz. Posted February 25, 2012 Share Posted February 25, 2012 I use MEd - an external map editor/viewer - to load up sections of the map and find information on objects. There might be a way of doing it in MTA's map editor too, I'm not sure, just I've been using MEd for a long time and old habits die hard. You can download it here. Just find your gtasa.exe path after you've installed MEd, select some IDE lists to load up in the 'Scene' tab, and click render. Double clicking on an object displays its information, including the name of the LOD, then you can search the relevant IDE list using the LOD name to find its ID. It's also handy for being able to extract DFF/TXD files, and for displaying information regarding the DFF/COL mesh - good for modellers. Link to comment
600er Posted February 25, 2012 Author Share Posted February 25, 2012 That helped me alot! Thank Oz! 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