dragonofdark Posted September 5, 2012 Share Posted September 5, 2012 Hey, I've got a problem when I want to delete some objects. setOcclusionsEnabled(false) for i=615,18630 do removeWorldModel(i,1442,1963,1905,0) removeWorldModel(i,280,2866,710,0) removeWorldModel(i,1528,27,1888,0) removeWorldModel(i,2081,-2512,1547,0) removeWorldModel(i,99,1091,716,0) removeWorldModel(i,1574,-1907,-1575,0) removeWorldModel(i,790,-597,-2405,0) removeWorldModel(i,272,-1294,-193,0) removeWorldModel(i,471.4,-655,-777,0) removeWorldModel(i,361,-291,-1415,0) removeWorldModel(i,191,-263,-983,0) removeWorldModel(i,108,-80,-1035,0) removeWorldModel(i,73,4,-983,0) removeWorldModel(i,84.75,3,-1174,0) end I remove all objects of an area, but there are some objects (like palm trees, some barriers,...) which stay. I verified if their ID is between 615 and 18630 and they are. I don't think that it's because they are still loaded as the script is already running before I start mta and I join the server. I can't find what's wrong, I also tried to delete every object from whole map and that works. I'm sure that these objects are in the removing area though... Link to comment
Controls Posted September 5, 2012 Share Posted September 5, 2012 Hey,I've got a problem when I want to delete some objects. setOcclusionsEnabled(false) for i=615,18630 do removeWorldModel(i,1442,1963,1905,0) removeWorldModel(i,280,2866,710,0) removeWorldModel(i,1528,27,1888,0) removeWorldModel(i,2081,-2512,1547,0) removeWorldModel(i,99,1091,716,0) removeWorldModel(i,1574,-1907,-1575,0) removeWorldModel(i,790,-597,-2405,0) removeWorldModel(i,272,-1294,-193,0) removeWorldModel(i,471.4,-655,-777,0) removeWorldModel(i,361,-291,-1415,0) removeWorldModel(i,191,-263,-983,0) removeWorldModel(i,108,-80,-1035,0) removeWorldModel(i,73,4,-983,0) removeWorldModel(i,84.75,3,-1174,0) end I remove all objects of an area, but there are some objects (like palm trees, some barriers,...) which stay. I verified if their ID is between 615 and 18630 and they are. I don't think that it's because they are still loaded as the script is already running before I start mta and I join the server. I can't find what's wrong, I also tried to delete every object from whole map and that works. I'm sure that these objects are in the removing area though... setOcclusionsEnabled(false) for i=999,1000 do removeWorldModel(1442,i,1000,1963,1905,0) removeWorldModel(280,i,2866,710,0) removeWorldModel(1528,i,27,1888,0) -- etc -- etc -- etc end Link to comment
dragonofdark Posted September 5, 2012 Author Share Posted September 5, 2012 setOcclusionsEnabled(false) for i=999,1000 do removeWorldModel(1442,i,1000,1963,1905,0) removeWorldModel(280,i,2866,710,0) removeWorldModel(1528,i,27,1888,0) -- etc -- etc -- etc end Lol ? 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