IPGetIsMeleeWeapon(object)

Checks if an item is a melee weapon.

int IPGetIsMeleeWeapon(
    object oItem
);

Parameters

oItem

Object to check whether is a melee weapon.


Description

Returns TRUE if oItem is a melee weapon.



Remarks

Checks the base item type against the list of types that are known to be melee weapons.

Note: It would be easier just to check !GetWeaponRanged(), for the item, as long as it is a valid item.


Requirements

#include "x2_inc_itemprop"

Version

1.61

See Also

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


 author: Lilac Soul, editor: Jasperre
 Send comments on this topic.