Background for Skyrim SE
Member of the Actor script
intfunctionGetEquippedItemType(intaiHand)Native

Description

Wiki Description

Gets the type of item the actor currently has equipped in the specified hand.

Documentation Comment

Obtains the item quipped in the specified hand (0 - Left hand, 1 - Right hand)
Return values are:
-1 - Error
0 - Nothing
1 - One-handed sword
2 - One-handed dagger
3 - One-handed axe
4 - One-handed mace
5 - Two-handed sword
6 - Two-handed axe
7 - Bow
8 - Staff
9 - Magic spell
10 - Shield
11 - Torch


Parameters

  1. intaiHand

    CK Wiki Description

    The hand to get the type from.

    • One of the following values is acceptable:* 0:Left hand
      • 1:Right hand

Examples

; Does Bob have a bow in his left hand?
if (Bob.GetEquippedItemType(0) == 7) ; 7 is a bow
  Debug.Trace("Bob has a bow in his left hand")
endIf

Auto-Generated Example

int myInt__aiHand

int returnedValue = myActor__toCallFunctionOn.GetEquippedItemType(myInt__aiHand)

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.