IPGetRandomArmorAppearanceType
From NWN Lexicon
Jump to navigationJump to search
IPGetRandomArmorAppearanceType(object, int)
Returns a random valid armor appearance type of the appropriate part.
Parameters
oArmor
Armor to get a random valid appearance of.
nPart
ITEM_APPR_ARMOR_MODEL_*
Description
Returns a random valid appearance type for oArmor
nPart - ITEM_APPR_ARMOR_MODEL_* constant
Uses Get2DAstring, so do not use in loops
Remarks
Simply a wrapper for the IPGetArmorAppearanceType function in the same include file.
Used by the crafting system (x2_im_*).
Requirements
#include " x2_inc_itemprop "
Version
1.61
See Also
functions: | |
constants: |
author: Lilac Soul, editor: Mistress, contributor: Kolyana