Pawns spawn with no weapons

Started by Tutankhamun, April 11, 2021, 06:20:36 AM

Previous topic - Next topic

Tutankhamun

I made a new faction and added some pawns to it. But when they spawn in the map they have no weapons even though i assigned weapons to them in the files.

Here's the relevant piece:

    <combatPower>25</combatPower>
    <gearHealthRange>
      <min>1</min>
      <max>1</max>
    </gearHealthRange>
    <weaponMoney>
      <min>275</min>
      <max>650</max>
    </weaponMoney>
    <weaponTags>
  <li>Gun_Mauser98kR</li>
  <li>Gun_Mauser98kR</li>
  <li>Gun_MP40SMG</li>
  <li>Gun_MP40SMG</li>
  <li>Gun_MG34MG</li>
    </weaponTags>
<isFighter>true</isFighter>


Is this because the weapons are from another mod (Pratt's WWII weapons)? I added it to the dependancy list of my mod.

Fakeaccount123

make sure the weapons you are trying to use have the weaponTag. weaponTag is not ecessarily equal to the weapon's name. For instance autopistol weapon tag is "SimpleGun". Something you can do is create your own weapon tag and put that tag in all the weapons you want your pawns to spawn with. Different weapons can have the same tag. You can put:
    <weaponTags>
      <li>Whetever</li>
    </weaponTags>
in all those wapons and then put the same tag in your pawns

Tutankhamun

Quote from: Fakeaccount123 on April 12, 2021, 07:37:59 AM
make sure the weapons you are trying to use have the weaponTag. weaponTag is not ecessarily equal to the weapon's name. For instance autopistol weapon tag is "SimpleGun". Something you can do is create your own weapon tag and put that tag in all the weapons you want your pawns to spawn with. Different weapons can have the same tag. You can put:
    <weaponTags>
      <li>Whetever</li>
    </weaponTags>
in all those wapons and then put the same tag in your pawns
That was the problem. I was using the gun name instead of the tags :-[. Thanks!