Jump to content

Deleting objects?


Recommended Posts

Posted

I have been looking at ways of deleting only some parts of the standard map, changing the ipl etc, but can't find any way to work. If I delete the parts in the ipl file, mta no longer loads and I know of any other way. Is it possible to remove some parts of the map using any other way that works with MTA ?

Posted

There actually is.. If you replace the dff/cols with an empty dff/col with engine funcs.. You'd have to know how to make them though and also have to keep in mind that lots of objects are used in several places

Posted

I stand corrected. Not that it's an elegant solution, since you're going to need client-side scripts of fucknormous dimensions to remove a lot of objects.

Why not just build in interiors or somewhere far above the normal map?

Posted

@Lordy: That would require the whole map to be built again wouldn't it cause afaik you can only replace the models of objects that were spawned by the script ?

@robhol: I was hoping to delete the doherty wasteland and rebuild it so it was of more use so interiors wouldn' really work very well.

  • 2 weeks later...
Posted

try to setElementInterior of your vehicle after its spawn..

like this:

addCommandHandler( "int", 
  function( player ) 
    local vehicle = getPlayerOccupiedVehicle( player ) 
    if vehicle then 
      local int = getElementInterior( player ) 
      setElementInterior( vehicle, int ) 
    end 
  end 
) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...