Jump to content

Interior in a Dimension


DonPro

Recommended Posts

  • 3 months later...
  • Moderators

I am not sure what you want.

If you want just move a single map to another dimension.

Open your .map file in your notepad++ and replace all dimension lines (ctrl+f).

Or:

You want to move all objects to your dimension? Try this:

Client

local lastDimension = getElementDimension(localPlayer) 
  
local thisResource = getThisResource ( ) 
addEventHandler("onResourceStart",root, 
function (res) 
    local objects = thisResource == res and getElementsByType("object") or getElementsByType("object",source) -- source = resourceRoot of that resource. 
    if objects and #objects > 0 then 
        local dimension = getElementDimension(localPlayer) 
        for i=1,#objects do 
            setElementDimension(objects,dimension) 
        end 
    end 
end) 
  
  
setTimer (function () 
    local dimension = getElementDimension(localPlayer) 
    if dimension ~= lastDimension then 
        lastDimension = dimension  
        local objects = getElementsByType("object") 
        for i=1,#objects do 
            setElementDimension(objects,dimension) 
        end 
    end 
end,100,1) 

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