Jump to content

Recommended Posts

Posted

I'm working on a mod that randomly assigns new weapons to enemies. The problem is, these enemies need ammo for their new gear, and I'm not particularly keen on manually adding the different ammo types on a case-by-case basis.

 

I've tried something like:

 

set rAmmo to rWeapon.GetWeaponAmmo

rMob.additem rAmmo 20

 

..but evidently the function doesn't work the way I need it to.

 

Any ideas would be appreciated.

Posted

GetWeaponAmmo should work, but make sure that, assuming you're using "rWeapon" to store the formID of the weapon's base form, you supply it as a parameter instead of trying to use it like a reference:

GetWeaponAmmo rWeapon

Cipscis

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...