Background for Skyrim SE
Member of the Actor script
FormfunctionGetEquippedObject(intlocation)Native

Description

Wiki Description

Returns the object currently equipped in the specified location.

Documentation Comment

returns the object currently equipped in the specified location
0 - left hand
1 - right hand
2 - shout


Caveats

CK Wiki - Notes

None


Parameters

intlocation


Examples

Actor PlayerRef = Game.GetPlayer()
Form EquippedItem = PlayerRef.GetEquippedObject(0) ; Check Left Hand

If !EquippedItem
    Debug.Trace("Player did not have any item in their left hand.")
ElseIf (EquippedItem as Weapon)
    Debug.Trace("Player has a Weapon in their left hand")
ElseIf (EquippedItem as Spell)
    Debug.Trace("Player has a spell in their left hand")
Else 
    Debug.Trace("Player was wielding an object in their left hand.")
EndIf

Auto-Generated Example

int myInt__location

Form returnedValue = myActor__toCallFunctionOn.GetEquippedObject(myInt__location)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.