Jump to content

Adding a .map file to all dimensions?


Spliff

Recommended Posts

As the title says, are there any way of adding an interior to all dimensions;

We've mapped a custom interior, and are gonna make it like a "standard" interior, for all boats to use (you can enter the boat)

Yet, each boat got it's own dimension for the interior, so players won't run into eachother when entering their boat.

So, is there any way I could make a .map file, be in all dimensions?

Link to comment
  • Moderators
Maybe this will work :
for i = 0, 65535 do 
    -- Add all map objects and set there dimension to "i" . 
end 

true that.

addCommandHandler("dimension" 
function (CMD,arguments) 
    local elements = getElementsByType("object") 
    local dimension = tonumber(arguments) or 0 
    for i=1,#elements do 
        setElementDimension (elements[i],dimension) 
    end 
end) 

/dimension 5

Link to comment

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...