Difference between revisions of "GetEquipmentSlot"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(New page: A command for Oblivion Script Extender Returns the equipment slot of the object. '''Syntax:''' (slot:short) ''reference.''GetEquipmentSlot ''objec...)
 
imported>Irwiss
(Placed OBSE_SLotID template in place of outdated text)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
'''Syntax:'''
(slot:short) ''reference.''GetEquipmentSlot ''objectID:ref''


Returns the equipment slot of the object.
Returns the equipment slot of the object.


'''Syntax:'''
{{OBSE_SLotIDs}}
(slot:short) ''reference.''GetEquipmentSlot ''objectID:ref''


'''Equipment Slot IDs:'''
==Notes==
  0:    head
*For multiple-slot items, use [[GetBipedSlotMask]] to determine which slots are covered by the item.
  1:    hair
  2:    upper body
  3:    lower body
  4:    hand
  5:    foot
  6:    right ring
  7:    left ring
  8:    amulet
  9:    weapon
10:    back weapon
11:    side weapon
12:    quiver
13:    shield
14:    torch
15:    tail
16:    weapon*
17:    ammo*
18:    lower and upper body
19:    lower and upper and foot
20:    lower, upper, hand and foot
    *Return values only


==See Also==
==See Also==
*[[GetEquippedObject]]
*[[GetEquippedObject]]
*[[SetEquipmentSlot]]


[[Category:Functions]]
[[Category:Functions]]

Latest revision as of 12:03, 26 December 2008

A command for Oblivion Script Extender

Syntax:

(slot:short) reference.GetEquipmentSlot objectID:ref

Returns the equipment slot of the object.


Slot IDs[edit source]

armor/clothing
 0	head
 1	hair
 2	upper body
 3	lower body
 4	hand
 5	foot
 6	right ring
 7	left ring
 8	amulet
 13	shield
 14	torch
 15	tail
 18	lower and upper body
 19	lower and upper and foot
 20	lower, upper, hand and foot
 21	lower, upper, and hand
 22 	upper and hand
 255	no slot

weapon/ammo
 16	weapon
 17	ammo


Special return values are used for getting the Equipment Type (Value Type 3) in GetOV, GetCV, GetEOV and GetECV

Special return values
 18     both lower and upper body (robes)

Reserved values are currently nonfunctional and/or obsolete.

reserved
  9	(weapon)
 10	(back weapon)
 11	(side weapon)
 12	(quiver) 


Notes[edit | edit source]

  • For multiple-slot items, use GetBipedSlotMask to determine which slots are covered by the item.

See Also[edit | edit source]