Background for Fallout 4
Member of the Actor script
intfunctionGetEquippedItemType(intaiEquipIndex)Native

Description

Wiki Description

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

Documentation Comment

Obtains the item quipped for the specified equip index
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 - Gun
10 - Grenade
11 - Mine
24 - Magic spell
25 - Shield
26 - Torch


Parameters

  1. intaiEquipIndex

    CK Wiki Description

    The equip index from the actor's race to get the type from.


Examples

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

Auto-Generated Example

int myInt__aiEquipIndex

int returnedValue = myActor__toCallFunctionOn.GetEquippedItemType(myInt__aiEquipIndex)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.