IPGetNumberOfArmorAppearances(int)

Returns the number of possible appearance types for the specified armor model (armor part).

int IPGetNumberOfArmorAppearances(
    int nPart
);

Parameters

nPart

ITEM_APPR_ARMOR_MODEL_* The armor model number (armor part) for which the number of appearance types is to be returned.


Description

This function determines the number of possible appearance types for a specified armor model (armor part).



Remarks

For possible values of ITEM_APPR_ARMOR_MODEL_* see IPGetArmorAppearanceType.

Uses Get2DAstring, so might be slow if the relevant 2da file is not cached.

This is an internal function. See the note near the top of #include index for more details.


Requirements

#include "x2_inc_itemprop"


Version

1.61

See Also

functions:  IPGetArmorAppearanceType | IPGetModifiedArmor | IPGetNextArmorAppearanceType | IPGetPrevArmorAppearanceType | IPGetRandomArmorAppearanceType | IPGetWeaponAppearanceType | GetItemAppearance
constants:  ITEM_APPR_*
categories:  Item Creation Functions | Item Properties Functions


author: motu99, editor: Mistress