Jump to content

Why does SetAmmo fail to work and break all proceeding options?


Sweet6Shooter

Recommended Posts

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

  • Recently Browsing   0 members

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