GetEquippedObject
Revision as of 07:23, 17 July 2014 by imported>Odessa (expanded)
< [[::Category:Functions|Category:Functions]]
A function added by the Fallout Script Extender.
Description
Returns the base object of the item equipped in the specified slot, for the calling reference. Return 0 (nothing) if no object is equipped there.
Syntax
(ref) ref.GetEquippedObject SlotID:int
Or:
(ref) ref.GetEqObj SlotID:int
Example
ref rClothes set rClothes to PlayerREF.GetEquippedObject 2 ; 'Upper Body'
Equipment Slot IDs
0: head 1: hair 2: upper body (usual slot for armor and clothing) 3: left hand 4: right hand 5: weapon 6: pip boy 7: backpack 8: necklace 9: headband 10: hat 11: eyeglasses 12: nosering 13: earrings 14: mask 15: choker 16: mouth object 17: body addon 1 18: body addon 2 19: body addon 3