<aside> ⚡ script "core_getarmorinfo" (int info, int ptr)

</aside>

Usage


This script is a script wrapper for the ACS function, [GetArmorInfo](<https://zdoom.org/wiki/GetArmorInfo>). It will grab information about the armor of the calling player (or an actor pointer of the calling actor that points to a player).

Parameters

<aside> ⚡ The constants for GetArmorInfo are not defined in DECORATE, so you will have to use the respective integer values above when calling "core_getarmorinfo" in DECORATE.

</aside>

Return Value

Returns the stored value of the specified info.

Example


This actor is already defined in core and can be given to a player to make their armor bar on their HP bar match the max amount of armor allowed for their armor type.

actor SetDynamicArmorDosage : CustomInventory
{
	States
	{
		Pickup:
			TNT1 A 0 A_GiveInventory("DynamicArmorDosage", CallACS("core_getarmorinfo", 1)) // ARMORINFO_SAVEAMOUNT
			stop
	}
}