Skyscraper Random Object Creator: Difference between revisions

From Skyscraper Wiki
Jump to navigation Jump to search
(Created page with "{{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 -->. == Steps == <!--- All of the below steps were created by EG881 ---> == See also == * In-C...")
 
Line 2: Line 2:
'''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 --->
<!--- All of the below steps were created by EG881 (except for the descriptions which were paraphrased into E1512's own words --->
=== Adding Trees ===
''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 <code>AddTree(texture, x, z, width, height, offset)</code>, where:
# <code>texture:</code> tree texture
# <code>x:</code> center x value of the tree
# <code>z:</code> center z value of the tree
# <code>width:</code> width of the tree
# <code>height:</code> height of the tree
# <code>offset:</code> starting altitude of tree
Default textures used are <code>sroc_tree1</code> (represents a large maple tree with a 3/4 ratio) and <code>sroc_blank</code> (a clear and transparent texture)
=== Adding Door Trims ===
 
== See also ==
== See also ==
* [[In-Code Basic Stairwell Creator]]
* [[In-Code Basic Stairwell Creator]]
* [[Escalator2011]]
* [[Escalator2011]]
[[Category:Scripts]]
[[Category:Scripts]]

Revision as of 10:50, 11 May 2024

This article is legitimate.
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

Adding Trees

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:
  1. texture: tree texture
  2. x: center x value of the tree
  3. z: center z value of the tree
  4. width: width of the tree
  5. height: height of the tree
  6. offset: 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

See also