akamanju Posted September 1, 2011 Share Posted September 1, 2011 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 More sharing options...
Pelinor Posted September 1, 2011 Share Posted September 1, 2011 GetPlayerCurrentAmmo from NVSE is what you're looking for. Link to comment Share on other sites More sharing options...
akamanju Posted September 2, 2011 Author Share Posted September 2, 2011 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 More sharing options...
Recommended Posts