IPGetNumberOfAppearances(int)

Returns the number of armor part variations for the specified part.

int IPGetNumberOfAppearances(
    int nPart
);

Parameters

nPart

ITEM_APPR_ARMOR_MODEL_*


Description

Returns the number of possible armor part variations for the specified part

nPart - ITEM_APPR_ARMOR_MODEL_* constant

Uses Get2DAstring, so do not use in loops



Remarks

Used by the crafting system (x2_im_*).


Known Bugs

BROKEN! This function does not exist! It is declared, but never implemented. Trying to use it will give this error message:

ERROR: UNDEFINED IDENTIFIER ()


Requirements

#include "x2_inc_itemprop"

Version

1.61

See Also

categories: Get Data from Object Functions | Item Creation Functions | Item Properties Functions
constants: ITEM_APPR_* Constants


 author: Lilac Soul