Jump to content

Getting the player's currently equipped ammo


akamanju

Recommended Posts

I'm making a somewhat simple weapon that accepts multiple ammo types, and I want to adjust the damage based on the ammo equipped. Namely, I want to lower the damage when .357 ammo is equipped and increase it when .50 ammo is equipped.

 

The damage change was easily accomplished with NVSE's SetAttack, and after some initial poking, GetEquipped <ammoid> always returns zero, and using NVSE's GetWeaponAmmo only returns the form list of valid ammo types. No value from GetEquippedObject returns ammo, and anything out of range ( 0-19 ) returns the pip boy.

 

So I'm left wondering - how do I get the ammo the user has equipped?

Link to comment
Share on other sites

I'm making a somewhat simple weapon that accepts multiple ammo types, and I want to adjust the damage based on the ammo equipped. Namely, I want to lower the damage when .357 ammo is equipped and increase it when .50 ammo is equipped.

 

The damage change was easily accomplished with NVSE's SetAttack, and after some initial poking, GetEquipped <ammoid> always returns zero, and using NVSE's GetWeaponAmmo only returns the form list of valid ammo types. No value from GetEquippedObject returns ammo, and anything out of range ( 0-19 ) returns the pip boy.

 

So I'm left wondering - how do I get the ammo the user has equipped?

 

Works like a charm! Thanks!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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