unitAttachmentName - Resolved -
-
In POS2 triggerAttachment section it mentions unitAttachmentName
Can anyone point me to a XML that uses that? (need for an example)
-
@mahks I don't know of any XMLs that use it. But the POS2 XML description is accurate to my knowledge:
unitAttachmentName values: the type of attachment (UnitAttachment, UnitSupportAttachment) and the exact full name of the attachment to be changed.
I believe it needs to look specify either UnitAttachment or UnitSupportAttachment then the actual name of the attachment so something like
UnitAttachment:name_of_unit_attachment
. -
@mahks
I have used this in Invasion USA:<!-- American Helicopter/Bomber CM AI Setting --> <attachment name="triggerAttachmentAmericanAIHelicopter4CM" attachTo="Americans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="conditions" value="conditionAttachmentAmericanAIPlayer"/> <option name="unitType" value="helicopter"/> <option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/> <option name="unitProperty" value="movement" count="4"/> <option name="when" value="before:americanCombatMove"/> </attachment>
Cheers...