Skyscraper Random Object Creator: Difference between revisions

From Skyscraper Wiki
Jump to navigation Jump to search
Line 12: Line 12:
# <code>height:</code> height of the tree
# <code>height:</code> height of the tree
# <code>offset:</code> starting altitude of 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)
Default textures used are <code>sroc_tree1</code> (represents a large maple tree with a 3/4<abbr title="width/height">*</abbr> ratio) and <code>sroc_blank</code> (a clear and transparent texture)
 
=== Adding Door Trims ===
=== Adding Door Trims ===



Revision as of 09:53, 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