Skyscraper Random Object Creator: Difference between revisions
Jump to navigation
Jump to search
Elevator1512 (talk | contribs) mNo edit summary |
MelvinMan10 (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
{{legit}} | {{legit}} | ||
'''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 <code><Include SROC/Scripts/r1_script.txt></code> near the beginning of their building scripts.<!--- EG881 recommended it be placed after the textures ection --> | '''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 <code><Include SROC/Scripts/r1_script.txt></code> near the beginning of their building scripts.<!--- EG881 recommended it be placed after the textures ection --> | ||
== Steps == | == Steps == | ||
<!--- All of the below steps were created by EG881 (except for the descriptions which were paraphrased into E1512's own words ---> | <!--- All of the below steps were created by EG881 (except for the descriptions which were paraphrased into E1512's own words ---> | ||
| Line 29: | Line 29: | ||
# <code>offset:</code> starting altitude of trim | # <code>offset:</code> starting altitude of trim | ||
# <code>borderthickness:</code> thickness of trim | # <code>borderthickness:</code> thickness of trim | ||
# <code>number:</code> this parameter specifies the shaft/stairwell number (for door trim inside stairwells or | # <code>number:</code> this parameter specifies the shaft/stairwell number (for door trim inside stairwells or elevator shafts) | ||
The default textures used are: | The default textures used are: | ||
# <code>sroc_brass1</code> - shiny brass | # <code>sroc_brass1</code> - shiny brass | ||
Latest revision as of 07:58, 8 June 2025
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 elevator shafts)
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