GetMeleeWeapon(object)

Returns TRUE if the item is a melee weapon.

int GetMeleeWeapon(
    object oItem
);

Parameters

oItem

Item had to be determined.


Description

This function returns TRUE if the given object is melee weapon, FALSE otherwise.



Remarks

This function is not compatible with custom content as its based on base item type.

The following weapons are considered to be melee by this function:

Requirements

#include "x2_i0_spells"


Version

1.69

See Also

functions:  GetWeaponRanged | GetBaseItemType
constants:  BASE_ITEM_*
categories:  Get Data From Object Functions


author: ShaDoOoW, editor: Mistress, Kookoo