GetArmorClass

From GECK
Jump to: navigation, search


A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.

Description

Returns the armor class of the specified Armor form or, if omitted, of the UpperBody armor of the calling actor.

Syntax

[help]
(armorClass:int) reference.GetArmorClass armor:form 

Or:

(armorClass:int) reference.GetAC armor:form

Example

set iArmorClass to GetArmorClass ArmorMetal
set iArmorClass to rActorRef.GetArmorClass 

Armor Class

0	None
1	Light Armor
2	Medium Armor
3	Heavy Armor

Notes

  • None (0) is not a valid armor class. It's only returned if a calling actor does not have an UpperBody armor equipped, or if an error occurred while the function was running, i.e. invalid form was passed.

See Also