A3kri Posted July 31, 2012 Share Posted July 31, 2012 Hello, I want to remove the la airport to replace it with another custom airport i used https://wiki.multitheftauto.com/wiki/RemoveWorldModel, but when i start it , the games bugs .. when u walk or drive on the road u fall in no where :l addEventHandler('onClientResourceStart', resourceRoot, function() restoreAllWorldModels() removeWorldModel(4942,5000000,1469.9957275391,-2291.0270996094,14.690351486206) removeWorldModel(4828,5000000,1469.9957275391,-2291.0270996094,14.690351486206) createObject ( 4828, 1481, -2300.1999511719, 12.5, 0, 0, 0 ) outputChatBox ( "New airport is loading .. please be patient =)") setTimer ( customObject, 200, 1) setOcclusionsEnabled(false) end ) function customObject () local txd = engineLoadTXD('files/air.txd',true) engineImportTXD(txd, 4828) local dff = engineLoadDFF('files/air.dff', 0) engineReplaceModel(dff, 4828) local col = engineLoadCOL('files/air.col') engineReplaceCOL(col, 4828) engineSetModelLODDistance(4828, 500) end it's client sided .. if it helps u ... Link to comment
Jaysds1 Posted July 31, 2012 Share Posted July 31, 2012 A 5mil radius is actually long, don't you think? try lowering it down Link to comment
Castillo Posted July 31, 2012 Share Posted July 31, 2012 Topic moved to "Scripting" section. Link to comment
A3kri Posted July 31, 2012 Author Share Posted July 31, 2012 A 5mil radius is actually long, don't you think?try lowering it down do u mean this ? engineSetModelLODDistance(4828, 500) if so .. do i lower it to 100 ? Link to comment
Jaysds1 Posted July 31, 2012 Share Posted July 31, 2012 nah, I meant the removeWorldObject try lowering the 2nd argument to 100k - 100000. Link to comment
A3kri Posted July 31, 2012 Author Share Posted July 31, 2012 Ook thanks .. ill try it removeWorldModel(4942,100000,1469.9957275391,-2291.0270996094,14.690351486206) removeWorldModel(4828,100000,1469.9957275391,-2291.0270996094,14.690351486206) Link to comment
_Dark_ Posted August 1, 2012 Share Posted August 1, 2012 nah, I meant the removeWorldObject try lowering the 2nd argument to 100k - 100000. Oh... Why 100,000? Enough even 3000. Link to comment
A3kri Posted August 1, 2012 Author Share Posted August 1, 2012 I'll try 3k and choose the best one .. cuz I don't really know what that means .. Link to comment
_Dark_ Posted August 1, 2012 Share Posted August 1, 2012 I'll try 3k and choose the best one .. cuz I don't really know what that means .. This means radius. 1469.9957275391,-2291.0270996094,14.690351486206 is the center of circle. This means, thats objects will be removed in 3000 units of center. Link to comment
A3kri Posted August 1, 2012 Author Share Posted August 1, 2012 I'll try 3k and choose the best one .. cuz I don't really know what that means .. This means radius. 1469.9957275391,-2291.0270996094,14.690351486206 is the center of circle. This means, thats objects will be removed in 3000 units of center. Ooh ,, so 100k was hell big !! Link to comment
_Dark_ Posted August 1, 2012 Share Posted August 1, 2012 Ooh ,, so 100k was hell big !! Yes, 3000 units is a all map. 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