Difference between revisions of "GetEquippedItemType - Actor"
Jump to navigation
Jump to search
imported>Jlundin m (moved GetEquippedItemType - Acotr to GetEquippedItemType - Actor) |
CreedAngelus (talk | contribs) m (→Return Value) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 24: | Line 24: | ||
*4: One-handed mace | *4: One-handed mace | ||
*5: Two-handed sword | *5: Two-handed sword | ||
*6: Two-handed axe | *6: Two-handed axe/mace | ||
*7: Bow | *7: Bow | ||
*8: Staff | *8: Staff | ||
*9: Magic spell | *9: Magic spell/Scroll | ||
*10: Shield | *10: Shield | ||
*11: Torch | *11: Torch | ||
*12: Crossbow | |||
== Examples == | == Examples == |
Latest revision as of 14:55, 3 February 2023
Member of: Actor Script
Gets the type of item the actor currently has equipped in the specified hand.
Syntax[edit | edit source]
int Function GetEquippedItemType(int aiHand) native
Parameters[edit | edit source]
- aiHand: The hand to get the type from.
- One of the following values is acceptable:
- 0: Left hand
- 1: Right hand
- One of the following values is acceptable:
Return Value[edit | edit source]
The type of item equipped in the specified hand, which is one of the following values:
- 0: Nothing (Hand to hand)
- 1: One-handed sword
- 2: One-handed dagger
- 3: One-handed axe
- 4: One-handed mace
- 5: Two-handed sword
- 6: Two-handed axe/mace
- 7: Bow
- 8: Staff
- 9: Magic spell/Scroll
- 10: Shield
- 11: Torch
- 12: Crossbow
Examples[edit | edit source]
; 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