Skip to content

LaserFence

Whether the structure is a laser fence segment that a fence post lays, energizes and removes.

Specification
Applies to
BuildingType
File
rules.ini
Section
[<ObjectType ID>]
Value
boolean
When omitted
no

A LaserFence=yes structure is a fence segment. A LaserFencePost=yes structure creates one segment in each cell of a run it lays toward another post, switches the run between live and slack, and removes it again. A post lays its segments free of charge.

The flag does not stop a house from building a segment type. The stock segment stays off every build list because it sets TechLevel=-1.

Declare only one LaserFence=yes BuildingType. Every post lays the first declared type with this flag, so any later one is never laid.

While its run is live, a segment keeps vehicles and infantry out of its cell, stops low projectiles, and destroys any vehicle, aircraft or infantryman in its cell. A slack segment stays on the map and stops nothing. What a live run stops covers the details.

The flag also changes what a segment may stand on and what may be placed on it:

  • A segment needs a cell with no building and no terrain object such as a tree. Unlike other structures, it may be placed on Tiberium or veins, unless the cell is a bridge, a ramp, or a cell where a bridge once stood.
  • A laser fence post or a Gate=yes structure of the same house may be placed on top of a segment. No other structure may.
See also — laser-fences