GetItemAppearance
Contents |
[edit] GetItemAppearance(object, int, int)
Returns the appearance of an item
int GetItemAppearance( object oItem, int nType, int nIndex );
[edit] Parameters
oItem
Item to get the appearance of.
nType
See remarks.
nIndex
See remarks.
[edit] Description
Queries the current value of the appearance settings on an item. The parameters are identical to those of CopyItemAndModify().
[edit] Remarks
Helmet models and simple items ignore iIndex.
Combinations (from CopyItemAndModify):
iType: ITEM_APPR_TYPE_SIMPLE_MODEL
iIndex: [Ignored]
Function returns: Model #
iType: ITEM_APPR_TYPE_WEAPON_COLOR
iIndex: ITEM_APPR_WEAPON_COLOR_*
Function returns: 1-4
iType: ITEM_APPR_TYPE_WEAPON_MODEL
iIndex: ITEM_APPR_WEAPON_MODEL_*
Function returns: Model #
iType: ITEM_APPR_TYPE_ARMOR_MODEL
iIndex: ITEM_APPR_ARMOR_MODEL_*
Function returns: Model #
iType: ITEM_APPR_TYPE_ARMOR_COLOR
iIndex: ITEM_APPR_ARMOR_COLOR_*
Function returns: 0-63
[edit] Version
1.61
[edit] See Also
functions: |
author: Lilac Soul