Sweet6Shooter Posted August 24, 2021 Share Posted August 24, 2021 So I've tried editing the ammo of a weapon in a script, and the "setweaponammo.baseform formlist" command not only fails to change the weapon's ammo, but it also prohibits the rest of the lines in the script from working. I've got this script right here: scn sDCSCPTStartup3 array_var 12GaChildren int SimpleRealism int ChanceBoth begin gamemode if GetGameRestarted printc "dc a 2 sc 3 restart" if GetINIFloat "Unique Changes:sBackwaterRifle" "DC Arsenal Config.ini" == 1 DLC04WeapUniqueRewardRifle.setammo NVDLC02AmmoList45Auto endif printc "dc a 2 sc 3 end" endif end If the setammo line is removed, the end console print fires. If it's there, it doesn't fire. Doesn't do anything different if I use a specific ammo instead of a formlist, or add the baseform afterwards, like it's detailed in the wiki.https://geckwiki.com/index.php?title=SetWeaponAmmo Can someone please offer some advice as to what's up? I'd really like to be able to make these changes in scripts. Link to comment Share on other sites More sharing options...
Sweet6Shooter Posted August 24, 2021 Author Share Posted August 24, 2021 Well, looks like I actually figured it out. Even though the wiki implies that putting "WeaponEID.setammo AmmoList" will work, putting "player.setammo AmmoList WeaponEID" fixes the issue. How dumb. Link to comment Share on other sites More sharing options...
Sweet6Shooter Posted August 24, 2021 Author Share Posted August 24, 2021 Okay, looks like you don't have to do "player.command"Just "command value baseform"I just totally misunderstood the way that the information on these commands was presented in the wiki. Link to comment Share on other sites More sharing options...
Recommended Posts