A3kri Posted July 31, 2012 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 ...
Jaysds1 Posted July 31, 2012 Posted July 31, 2012 A 5mil radius is actually long, don't you think? try lowering it down My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Castillo Posted July 31, 2012 Posted July 31, 2012 Topic moved to "Scripting" section. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
A3kri Posted July 31, 2012 Author 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 ?
Jaysds1 Posted July 31, 2012 Posted July 31, 2012 nah, I meant the removeWorldObject try lowering the 2nd argument to 100k - 100000. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
A3kri Posted July 31, 2012 Author 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)
Jaysds1 Posted July 31, 2012 Posted July 31, 2012 ok My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
_Dark_ Posted August 1, 2012 Posted August 1, 2012 nah, I meant the removeWorldObject try lowering the 2nd argument to 100k - 100000. Oh... Why 100,000? Enough even 3000. #define if while#define TRUE FALSE// problems?
A3kri Posted August 1, 2012 Author Posted August 1, 2012 I'll try 3k and choose the best one .. cuz I don't really know what that means ..
_Dark_ Posted August 1, 2012 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. #define if while#define TRUE FALSE// problems?
A3kri Posted August 1, 2012 Author 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 !!
_Dark_ Posted August 1, 2012 Posted August 1, 2012 Ooh ,, so 100k was hell big !! Yes, 3000 units is a all map. #define if while#define TRUE FALSE// problems?
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