Jump to content

changing dimensions


5150

Recommended Posts

i think you can't , it's easy to set a map's dimension via lua. why not do that?
setElementDimension 

well... i mean in files like this i just usually find where it says "dimension=0" and change it to 1 or 2 or whatever, for each object. but some maps are very big and it takes too long

"object (artgallery_SFS) (1)" breakable="true" collisions="true" doublesided="false" alpha="255" dimension="0" interior="0" model="10381" posX="305.40234" posY="311.36328" posZ="66.9316" rotX="0" rotY="0" rotZ="271.681" scale="1"> 
    "object (cityhall_SFS) (1)" breakable="true" collisions="true" doublesided="false" alpha="255" dimension="0" interior="0" model="10377" posX="327.9794" posY="629.26849" posZ="71.354" rotX="0" rotY="0" rotZ="90.939" scale="1"> 
    "object (cityhall2_SFS) (2)" breakable="true" collisions="true" doublesided="false" alpha="255" dimension="0" interior="0" model="10379" posX="400.51779" posY="268.70749" posZ="63.8547" rotX="0" rotY="0" rotZ="92.703" scale="1"> 
    "object (ctiyhallsquare_SFS) (2)" breakable="true" collisions="true" doublesided="false" alpha="255" dimension="0" interior="0" model="10378" posX="229.72168" posY="274.20898" posZ="55.6002" rotX="0" rotY="0" rotZ="92.148" scale="1"> 
    "object (artgallery_SFS) (2)" breakable="true" collisions="true" doublesided="false" alpha="255" dimension="0" interior="0" model="10381" posX="187.3922" posY="270.6282" posZ="66.3149" rotX="0" rotY="0" rotZ="182.032" scale="1"> 
    "object (artgallery_SFS) (3)" breakable="true" collisions="true" doublesided="false" alpha="255" dimension="0" interior="0" model="10381" posX="364.7955" posY="563.18811" posZ="65.1118" rotX="0" rotY="0" rotZ="91.945" scale="1"> 
    "object (Posh_thingsfe) (1)" breakable="true" collisions="true" doublesided="false" alpha="255" dimension="0" interior="0" model="10049" posX="403.01563" posY="359.47656" posZ="69.05697" rotX="2" rotY="356.49" rotZ="2.401" scale="1"> 
    "object (sfe_archybald1) (1)" breakable="true" collisions="true" doublesided="false" alpha="255" dimension="0" interior="0" model="10023" posX="228.67039" posY="309.9903" posZ="63.8485" rotX="0" rotY="0" rotZ="1.5" scale="1"> 
    "object (ferybuild_1) (1)" breakable="true" collisions="true" doublesided="false" alpha="255" dimension="0" interior="0" model="9901" posX="225.21484" posY="110.90918" posZ="120.9903" rotX="0" rotY="0" rotZ="282.266" scale="1"> 

Link to comment
Use a script, "
  
Dimension= Dimension yeh want 
for i,v in pairs (getElementsByType("Object",resourceRoot) do 
setElementDimension(v,Dimension) 
end 

"

so this will take all elements of the map and transfer it to another dim? do i just stick it in the resource and add it to meta? or should i do it seperately

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