A function added by the New Vegas Script Extender.
(BitMask:int) GetEquipmentBipedMask ToGetMaskOf:armor
- 2 (4) = HasBackpack
- 3 (8) = Medium Armor
- 5 (32) = Power Armor
- 6 (64) = Non playable
- 7 (128) = HeavyArmor
Other bits are either unused or unknown.
int BitMask let BitMask := GetEquipmentBipedMask ArmorTeslaPower ; * 160 (Heavy + Power)
To check if some item has the "HeavyArmor" flag, you could use:
if BitMask == (SetBit BitMask, 7) ; It is "Heavy armor". ; (Bitmask compares equal to self with bit7 set, so bit7 is already set) endif
if eval BitMask & (1 << 7) ; Bit7 is set, so the item is flagged as "Heavy armor" endif