SetEquipmentSlotsMask

From GECK
(Redirected from SetESM)
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Sets the slots used by the biped form from a bitmask int, for the specified Base Form. If a calling reference is passed, its base form will be used instead.

The mask is a bitmask that should be built by using ClearBit/SetBit. The order is as returned by GetEquippedObject or as defined in the GECK slot list of an armor, and starts at 0.

Syntax

[help]
(BitMask:int) reference.SetEquipmentSlotsMask BitMask:int ToSetSlotsOf:baseForm 

Or:

(BitMask:int) reference.SetESM BitMask:int ToSetSlotsOf:baseForm 

Example

int BitMask
SetEquipmentSlotsMask BitMask, ArmorLeather

See Also