Skip to content

StartFacing

The facing a structure snaps to when its construction animation ends, in eighths of a turn.

Specification
Applies to
BuildingType
File
rules.ini
Section
[<ObjectType ID>]
Value
integer
When omitted
0
rules.ini
[DJUGG] ; the stock deployed Juggernaut
IsJuggernaut=yes
StartFacing=4 ; south

The figure counts eighths of a turn — 0 north, 2 east, 4 south, 6 west — and is multiplied onto the engine’s 256-step dial, so each step is 45 degrees and there is no way to write a facing between two of them. A figure of 8 or more wraps around.

The facing is applied the moment a structure’s construction animation finishes. A LaserFence=yes structure is skipped and keeps whatever facing it was placed with.

An IsJuggernaut=yes structure will not begin to fold away until its body is back at this facing and its barrel is back at StartPitch: deconstruction turns both toward their start values and retries every frame until they arrive, before the reverse build-up runs. An Artillary=yes structure takes the same paired test later on, at the point its UndeploysInto vehicle would be created.