IPGetArmorAppearanceType(object, int, int)
Returns an armor appearance type for the specified armor model.
The object being examined.
ITEM_APPR_ARMOR_MODEL_* Armor model for which an appearance type is to be returned.
X2_IP_ARMORTYPE_* Whether next, previous or a random appearance type is returned.
This function determines the current appearance type for a specified armor model (nArmorModel) of oArmor and returns either the next / previous appearance type (relative to the current appearance type), or a random valid appearance type, drawn from the full list of appearance types for the specified armor model.
The value of the parameter nMode determines whether the next, previous, or a random appearance type is returned.
nMode can be any of the following:
- X2_IP_ARMORTYPE_NEXT returns the next appearance type
- X2_IP_ARMORTYPE_PREV returns the previous appearance type
- X2_IP_ARMORTYPE_RANDOM returns a random appearance type
The value of nArmorModel determines the armor model, for which an appearance type is returned. nArmorModel can take on any of the following values:
Note that every armor model (-> nArmorModel) can have one to several appearance types.
This function selects one appearance type from the list of possible appearance types for the specified armor model.
The number of appearance types for a given model can be determined by the function #include index for more details.
#include " x2_inc_itemprop "
author: motu99, editor: Mistress