User Tools

Site Tools


modding:xml:weapon_with_multiple_projectiles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

modding:xml:weapon_with_multiple_projectiles [2012/05/28 05:40] – created rpcmodding:xml:weapon_with_multiple_projectiles [2014/12/27 04:40] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +=====Example 2=====
 +This is a [[Weapon devices|weapon]] that fires multiple projectiles:
 +
 +<code>
 +   <Weapon
 +      fireRate=             "15"
 +      powerUse=             "10"
 +      >
 +
 +      <Missiles>
 +         <Missile
 +            ammoID=               "&itAmmo1;"
 +
 +            type=                 "missile"
 +            damage=               "kinetic:1d6+1; momentum1"
 +            missileSpeed=         "40"
 +            interaction=          "80"
 +            lifetime=             "60"
 +            sound=                "&snRecoillessCannon;"
 +            >
 +
 +            <Effect>
 +               <Bolt
 +                  length=            "16"
 +                  width=             "3"
 +                  primaryColor=      "0xcd, 0xf3, 0xff"
 +                  secondaryColor=    "0x8f, 0xa9, 0xb2"
 +                  />
 +            </Effect>
 +         </Missile>
 +
 +         <Missile
 +            ammoID=               "&itAmmo2;"
 +
 +            type=                 "missile"
 +            damage=               "kinetic:1d6+1; momentum1"
 +            missileSpeed=         "40"
 +            interaction=          "80"
 +            lifetime=             "60"
 +            sound=                "&snRecoillessCannon;"
 +            >
 +
 +            <Effect>
 +               <Bolt
 +                  length=            "16"
 +                  width=             "3"
 +                  primaryColor=      "0xcd, 0xf3, 0xff"
 +                  secondaryColor=    "0x8f, 0xa9, 0xb2"
 +                  />
 +            </Effect>
 +         </Missile>
 +      </Missiles>
 +   </Weapon>
 +</code>
  
modding/xml/weapon_with_multiple_projectiles.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1