IPGetIsRangedWeapon

From NWN Lexicon
Jump to: navigation, search



IPGetIsRangedWeapon(object)

Checks if an item is a ranged weapon.

int IPGetIsRangedWeapon(
    object oItem
);

Parameters

oItem

Item to check whether is a ranged weapon.


Description

Returns TRUE if oItem is a ranged weapon.



Remarks

Does exactly the same as GetWeaponRanged. From the "// doh !" comment in the function code, I'm guessing that Georg (creator of the function) forgot about that function...

I'd recommend that you use GetWeaponRanged instead of this function, as it will be more CPU friendly. Granted, unless you loop through 1,000 items, you probably won't be able to tell the difference, but still...


Requirements

#include " x2_inc_itemprop "

Version

1.61

See Also

functions: 

IPGetIsProjectile



 author: Lilac Soul