GetEquippedObject

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


A function added by the Fallout Script Extender.

Description

For the calling Actor reference, returns the BaseForm of the item equipped in the specified slot. Returns 0 (nothing) if no object is equipped there.

Syntax

[help]
(equippedObj:BaseForm) actorReference.GetEquippedObject SlotID:int 

Or:

(equippedObj:BaseForm) actorReference.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

See Also