IPGetIsBludgeoningWeapon(object)

Checks if an item is a bludgeoning weapon.

int IPGetIsBludgeoningWeapon(
    object oItem
);

Parameters

oItem

Object to check whether is a bludgeoning weapon.


Description

Returns true if weapon is blugeoning (used for poison)

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



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.


Requirements

#include "x2_inc_itemprop"

Version

1.61

See Also

functions: IPGetIsMeleeWeapon | IPGetIsProjectile | IPGetIsRangedWeapon
categories: Get Data from Object Functions | Item Properties Functions


 author: Lilac Soul