IPGetIsItemEquipable
From NWN Lexicon
Contents |
[edit] IPGetIsItemEquipable(object)
Checks if an item can be equipped.
int IPGetIsItemEquipable( object oItem );
[edit] Parameters
oItem
Item to check whether or not can be equipped.
[edit] Description
Returns TRUE if item can be equipped.
Uses Get2DAString, so do not use in a loop!
[edit] Remarks
Simply queries the EquipableSlots column in "baseitems" with the basetype of oItem. Get2DAString can cause major lag when used in loops of even a fairly small size, so be careful if you want to use this in a loop.
[edit] Known Bugs
You should first check if the object is a valid item, because the function will return TRUE on an error, not FALSE.
[edit] Requirements
#include " x2_inc_itemprop "
[edit] Version
1.61
[edit] See Also
functions: |
author: Lilac Soul