Xilandro Posted October 6, 2013 Share Posted October 6, 2013 (edited) Hello. I'm sorry, but i need some scripting help =\ I'm trying to make a counter how many ammo clips are left in the player's inventory for equipped weapon (like stimpak counter here http://newvegas.nexusmods.com/mods/49566/?)And the question is: how can i get the clip number in the player's inventory? As i understand it's something like "ammo count in player's inventory / rounds in clip = clip number"NVSE have next functions that may be helpfulGetPlayerCurrentAmmoGetWeaponClipRoundsGetWeaponAmmoUseGetClipSize i will appreciate any help. Already done, thanks to Dazzerfong ref refGun ref refAmmo short magsRemaining begin gamemode set refGun to player.getequippedobject 5 set refAmmo to getweaponammo refGun set magsRemaining to (player.getitemcount refAmmo)/(player.GetWeaponClipRounds refGun) Edited October 6, 2013 by Xilandro Link to comment Share on other sites More sharing options...
XxLunaMothxX Posted October 19, 2013 Share Posted October 19, 2013 (edited) I'm not exactly a guru at scripting, especially with NVSE, but did you run the script through cipscis? I did, and the only thing it wanted was the "end" statement, but I'm pretty sure you already know that. Alternatively, you can always ask the creator of mods like that for help; walrus2517 for the stimpak counter mod, and there's another mod on FNV: Nexus, the "Realistic Reloading" mod, you could checkout. -Regards Edited October 19, 2013 by 2cooldays Link to comment Share on other sites More sharing options...
Recommended Posts