User Tools

Site Tools


guides:2-scales-in-a-building

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
guides:2-scales-in-a-building [2020/04/23 09:33] vjraymonguides:2-scales-in-a-building [2021/02/23 11:55] (current) – title fix minotorious
Line 1: Line 1:
-====== How to have scales on the same building ======+====== Having Scales on the same Building ======
  
 The following code is an example of 2 scales for the same building The following code is an example of 2 scales for the same building
Line 6: Line 6:
 -- Register the primary root part -- Register the primary root part
 myMod:register({ myMod:register({
- DataType = "BUILDING_PART", +    DataType = "BUILDING_PART", 
- Id = "MY_PRIMARY_ROOT_PART", +    Id = "MY_PRIMARY_ROOT_PART", 
- Mover = { DataType = "BUILDING_PART_MOVER_INSTANCE" }, +    Mover = { DataType = "BUILDING_PART_MOVER_INSTANCE" }, 
- ConstructorData = { +    ConstructorData = { 
-       DataType = "BUILDING_CONSTRUCTOR_SCALER", +        DataType = "BUILDING_CONSTRUCTOR_SCALER", 
-     CoreObjectPrefab = "MY_PRIMARY_ROOT_PREFAB", + CoreObjectPrefab = "MY_PRIMARY_ROOT_PREFAB", 
-     EndPart = "MY_SECONDARY_ROOT_PART", + EndPart = "MY_SECONDARY_ROOT_PART", 
-     FillerList = { +        FillerList = { 
- "MY_PRIMARY_TILING3_PART", +            "MY_PRIMARY_TILING3_PART", 
- "MY_PRIMARY_TILING2_PART" +            "MY_PRIMARY_TILING2_PART" 
-                }, +        }, 
- BasementFillerList = { +        BasementFillerList = { 
- "MY_PRIMARY_TILING1_PART" +            "MY_PRIMARY_TILING1_PART" 
-         }, +        }, 
- MinimumScale = 1, +        MinimumScale = 1, 
- BasementScale = 1 +        BasementScale = 1 
- }+    }
 }) })
  
 -- Register the secondary root part -- Register the secondary root part
-StoneGateV6:register({ +myMod:register({ 
-  DataType = "BUILDING_PART", +    DataType = "BUILDING_PART", 
- Id = "MY_SECONDARY_ROOT_PART", +    Id = "MY_SECONDARY_ROOT_PART", 
- Mover = { DataType = "BUILDING_PART_MOVER_BRIDGE" }, +    Mover = { DataType = "BUILDING_PART_MOVER_BRIDGE" }, 
- ConstructorData = { +    ConstructorData = { 
- DataType = "BUILDING_CONSTRUCTOR_SCALER", +        DataType = "BUILDING_CONSTRUCTOR_SCALER", 
- CoreObjectPrefab = "MY_SECONDARY_ROOT_PREFAB", +        CoreObjectPrefab = "MY_SECONDARY_ROOT_PREFAB", 
-   EndPart = "MY_SECONDARY_ROOT_TOP_PART", +        EndPart = "MY_SECONDARY_ROOT_TOP_PART", 
- FillerList = { +        FillerList = { 
- "MY_SECONDARY_ROOT_TILING3_PART", +            "MY_SECONDARY_ROOT_TILING3_PART", 
- "MY_SECONDARY_ROOT_TILING2_PART" +            "MY_SECONDARY_ROOT_TILING2_PART" 
-                }, +        }, 
- MinimumScale = 0, +        MinimumScale = 0, 
- BasementScale = 0 +        BasementScale = 0 
- }+    }
 }) })
 </code> </code>
Line 46: Line 46:
 Note: Note:
    
-1) "MY_PRIMARYis the basis scale, "MY_SECONDARY is the upper scale+1) ''MY_PRIMARY'' is the basis scale, ''MY_SECONDARY'' is the upper scale
  
 2) 2 green arrows appear. There are a little bit tricky to set. 2) 2 green arrows appear. There are a little bit tricky to set.
Line 52: Line 52:
 Mover = { DataType = "BUILDING_PART_MOVER_BRIDGE" } Mover = { DataType = "BUILDING_PART_MOVER_BRIDGE" }
 </code> </code>
-is the workaround I found to get it easier (although this seems weird).+is the current workaround (version 1.5) I found to make it easier (although this seems weird).
  
guides/2-scales-in-a-building.1587648808.txt.gz · Last modified: 2020/04/23 09:33 by vjraymon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki