IPGetIsBludgeoningWeapon

From NWN Lexicon



Contents

[edit] IPGetIsBludgeoningWeapon(object)

Checks if an item is a bludgeoning weapon.

int IPGetIsBludgeoningWeapon(
    object oItem
);

[edit] Parameters

oItem

Object to check whether is a bludgeoning weapon.


[edit] Description

Returns true if weapon is blugeoning (used for poison)

This uses Get2DAstring, so it is slow. Avoid using in loops!



[edit] Remarks

Checks in the baseitems.2da file's WeaponType column, in the row index that is the item's base type. It does not check if the weapon has any additional damagetypes via itemproperties.

Returns FALSE if the item isn't a bludgeoning type weapon, and on error, e.g. if oItem isn't a valid object.


[edit] Requirements

#include " x2_inc_itemprop "

[edit] Version

1.61

[edit] See Also

functions: 

IPGetIsRangedWeapon



 author: Lilac Soul
 

Personal tools
Categories