TurretHolder¶
XML Elements¶
The following elements can be used within this component:
TurretHolder¶
TurretPoints¶
Points that will be used to visibly garrison a unit.
Path: TurretHolder/TurretPoints
{TurretPointsType}¶
Element containing the offset coordinates.
Path: TurretHolder/TurretPoints/{TurretPointsType}
X¶
Type: decimal (e.g. -10.0 or 0.0 or 2.5)
Path: TurretHolder/TurretPoints/{TurretPointsType}/X
Y¶
Type: decimal (e.g. -10.0 or 0.0 or 2.5)
Path: TurretHolder/TurretPoints/{TurretPointsType}/Y
Z¶
Type: decimal (e.g. -10.0 or 0.0 or 2.5)
Path: TurretHolder/TurretPoints/{TurretPointsType}/Z
Template¶
Type: text
Path: TurretHolder/TurretPoints/{TurretPointsType}/Template
Ejectable¶
Whether this template is tied to the turret position (i.e. not allowed to leave the turret point).
Type: boolean (true or false)
Path: TurretHolder/TurretPoints/{TurretPointsType}/Ejectable
AllowedClasses¶
If specified, only entities matching the given classes will be able to use this turret.
Type: text
Path: TurretHolder/TurretPoints/{TurretPointsType}/AllowedClasses
Angle¶
Angle in degrees relative to the turretHolder direction.
Type: decimal (e.g. -10.0 or 0.0 or 2.5)
Path: TurretHolder/TurretPoints/{TurretPointsType}/Angle
LoadingRange¶
The maximum distance from this holder at which entities are allowed to occupy a turret point. Should be about 2.0 for land entities and preferably greater for ships.
Type: non-negative decimal
Path: TurretHolder/LoadingRange
Pickup¶
This entity will try to move to pick up units to be turreted.
Type: boolean (true or false)
Path: TurretHolder/Pickup
RELAX NG Grammar¶
<define name="component.TurretHolder">
<element name="TurretHolder">
<interleave>
<element name="TurretPoints">
<oneOrMore>
<element>
<anyName/>
<interleave>
<element name="X">
<data type="decimal"/>
</element>
<element name="Y">
<data type="decimal"/>
</element>
<element name="Z">
<data type="decimal"/>
</element>
<optional>
<interleave>
<element name="Template"/>
<element name="Ejectable">
<data type="boolean"/>
</element>
</interleave>
</optional>
<optional>
<element name="AllowedClasses">
<attribute name="datatype">
<value>
</value>
</attribute>
<text/>
</element>
</optional>
<optional>
<element name="Angle">
<data type="decimal"/>
</element>
</optional>
</interleave>
</element>
</oneOrMore>
</element>
<optional>
<element name="LoadingRange">
<ref name="nonNegativeDecimal"/>
</element>
</optional>
<optional>
<element name="Pickup">
<data type="boolean"/>
</element>
</optional>
</interleave>
</element>
</define>