Skyscraper Random Object Creator
(Redirected from SROC)
It contains good-faith information, such as an existing building or content. |
Skyscraper Random Object Creator (SROC) is a function allowing users to add many different objects such as trees and door trims to their building. Adding an object using SROC requires the user to place in <Include SROC/Scripts/r1_script.txt>
near the beginning of their building scripts.
Steps[edit | edit source]
Adding Trees[edit | edit source]
NOTE: Trees made using SROC are generically represented and not detailed 3D models due to requiring several hundred and likely thousands of polygons and thereby using lots of resources.
- The syntax used is
AddTree(texture, x, z, width, height, offset)
, where:
texture:
tree texturex:
center x value of the treez:
center z value of the treewidth:
width of the treeheight:
height of the treeoffset:
starting altitude of tree
Default textures used are sroc_tree1
(represents a large maple tree with a 3/4* ratio) and sroc_blank
(a clear and transparent texture)
Adding Door Trims[edit | edit source]
Door trims can be added to any building with a single function/ The syntax used is:
AddTrim(type, direction, showmainside, showbackside, texture, depth, x, z, width, height, offset, borderwidth, number*)
AddAutoSizeTrim(type, direction, showmainside, showbackside, texture, depth, x, z, width, height, offset, borderwidth, number*)
type:
determines the type of door trim, 1 for standard doors, 2 for windows, Stair1 for stairwell doorsdirection:
determines the direction the main side faces, should be consistant with the corresponding wall's orientation (front corresponding to left and back to right); can be left, right, front, back, centerx, or centerz)texture:
door trim textureshowmainside:
tells whether to create trim on the main side (or the side specified in the direction parameter)showbackside:
tells whether to create trim on the back side (or the side opposite to the main side)depth:
depth of the trim opening, should be consistent with the wall's thickness or distance between elevator doors and the main wallx:
center x (for elevator door trim, center x of shaft)z:
center z (for elevator door trim, center z of shaft)width:
width of trim opening (not including extra width from trim thickness)height:
height of trim opening (not including extra height from trim thickness)offset:
starting altitude of trimborderthickness:
thickness of trimnumber:
this parameter specifies the shaft/stairwell number (for door trim inside stairwells or elevatorshafts)
The default textures used are:
sroc_brass1
- shiny brasssroc_brass2
- dull brasssroc_brass3
- brass, medium luster, lower saturationsroc_stainlesssteel1
- shiny stainless steelsroc_stainlesssteel2
- dark stainless steelsroc_stainlesssteel3
- stainless steel, medium luster and brightnesssroc_blank
- clear, transparentsroc_blacktrim
- standard black door/window trim