Salem Posted March 28, 2014 Posted March 28, 2014 Need some tip for removing special type of object from the main world. Namely, I have problem with these little sand palms (joshuas) to remove em using function removeWorldModel( ... ). Four models: 676, 681, 858, 904 included. Everything besides is ok. Who knows some working solution? Btw. they appear in game in quite different way and times than other objects.
justn Posted March 28, 2014 Posted March 28, 2014 You can enter map editor and remove the objects '-' after you can save the map, add it to the gamemode's XML and to the gamemode itself and there GL
Salem Posted March 28, 2014 Author Posted March 28, 2014 I don't get it. I need these objects to be removed while playing map on the server, not in map editor. I create script to remove objects and add it to the zip file (with map) as 'oremover.lua' in the way like this: addEventHandler("onResourceStart", resourceRoot, function() removeWorldModel( 676, 60, 873, 1709, 7 ) removeWorldModel( 681, 60, 873, 1709, 7 ) removeWorldModel( 858, 60, 873, 1709, 7 ) removeWorldModel( 904, 60, 873, 1709, 7 ) .... end) addEventHandler("onResourceStop", resourceRoot, function() restoreAllWorldModels() end) And for these palms it doesn't work.
Castillo Posted March 28, 2014 Posted March 28, 2014 Are you sure the model/position/radius are correct?
Salem Posted March 28, 2014 Author Posted March 28, 2014 Yep. Why couldn't be sure? Tested it in many places, not also of this mentioned above. If there's some error in my script it could be different model number of identical object, I'll check it oyt, but these objects look like being loaded client-side. Hmm. Ok, I'll try to use it client-side.
Salem Posted March 28, 2014 Author Posted March 28, 2014 Dupa. This also didn't work. And adding these objects to map: also doesn't work. Can't find any other models of these objects. This should work in my opinion. These methods are good for any other objects I used to date.
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