Lesson 4: Setting the Surface Type with the Raw Code Block

Introduction:
This lesson describes how to use the Architect raw code block object to inject SCASM syntax code right into your scenery project. The raw code block simply injects the SCASM text into the final output, so any manual SCASM code can be entered. The sky is the limit here, however in this lesson we will simply set the surface type.

Prerequisite:
This lesson assumes that you are familiar with creating a basic scenery with FS Architect. Beginners should complete the Simple Airport Tutorial in the Architect help.

Step 1:
Open your Architect project document, and add a SCASM Raw Code Block object.


 

Step 2:
Edit the object's properties and enter the SurfaceType SCASM command. See the SCASM documentation for other SCASM commands, and the appropriate syntax.

Surface Type Arguments (excerpt from SCASM documentation)

SurfaceType( type width_x width_y alt )
This instruction lets you define the surface
properties of a given rectangular area. Note, you
cannot 'harden' an elevated surface with this
command! Use aditional section 16 commands for this.
-
type 0: smooth surface, runnway, taxiway
1: rough surface, grass
2: water surface, causes
splash / crash
width_x
width_y N-E / N-S deviation, depends on the
scale factors in the RefPoint()
command. The width is measured from
the left (or upper) side to the
right (or lower) side. (integer)
alt Altitude of the surface measured in
meters (integer).
In FS2K I found this parameter
always 0.

Compile and build your project. The surface surrounding the code block will now be adjusted. 

 

 

 

 

 

 

If you have any suggestions that might make this lesson easier to follow or use, please send them to support@pouksim.com.

Copyright © 2002 Pouk Software All Rights Reserved.
mailto: support@pouksim.com