<aside> ⚡ script "core_AmmoScript_MTank" (void)

</aside>

Usage


An alternate version of [core_AmmoScript](<https://mm8bdm.notion.site/core_AmmoScript-7ff6a3d7782b40ad8716e5b13816de93>) that implements the behavior of the M Tank. When used, it will set all of the player’s weapons’ ammo to max, regardless of any ammo gain modifiers.

<aside> 🚨 This script only works for weapons defined using [DefineWeapon](<https://mm8bdm.notion.site/DefineWeapon-6a4db7e06fb0415e8f80c3407c378ff8>)! It will have no effect when used for undefined weapons.

</aside>

Example


The modified inventory actor below could be given by a successful M Tank use to restore all of the player’s ammo.

actor MTankAmmo_Modified : CustomInventory
{
	States
	{
		Pickup:
			TNT1 A 0 ACS_NamedExecuteWithResult("core_AmmoScript_MTank")
			stop
	}
}

See Also


core_AmmoScript