Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    unitAttachmentName - Resolved -

    XML Options Browser
    3
    3
    1040
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mahks
      Mahks last edited by Mahks

      In POS2 triggerAttachment section it mentions unitAttachmentName

      Can anyone point me to a XML that uses that? (need for an example)

      redrum W 2 Replies Last reply Reply Quote 0
      • redrum
        redrum Admin @Mahks last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • W
          wc_sumpton @Mahks last edited by

          @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...

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums