GetSlashingWeapon
From NWN Lexicon
Contents |
[edit] GetSlashingWeapon(object)
Returns TRUE if the item is a slashing weapon.
int GetSlashingWeapon( object oItem );
[edit] Parameters
oItem
Item to be determined.
[edit] Description
This function returns TRUE if the given object is slashing weapon, FALSE otherwise.
[edit] Remarks
This function is not compatible with custom content as its based on base item type.
The following weapons are considered to be slashing by this function:
- BASE_ITEM_BASTARDSWORD
- BASE_ITEM_BATTLEAXE
- BASE_ITEM_DOUBLEAXE
- BASE_ITEM_DWARVENWARAXE
- BASE_ITEM_GREATAXE
- BASE_ITEM_GREATSWORD
- BASE_ITEM_HALBERD
- BASE_ITEM_HANDAXE
- BASE_ITEM_KAMA
- BASE_ITEM_KATANA
- BASE_ITEM_KUKRI
- BASE_ITEM_LONGSWORD
- BASE_ITEM_SCIMITAR
- BASE_ITEM_SCYTHE
- BASE_ITEM_SICKLE
- BASE_ITEM_TWOBLADEDSWORD
- BASE_ITEM_THROWINGAXE
- BASE_ITEM_WHIP
[edit] Requirements
#include " x2_i0_spells "
[edit] Version
???
[edit] See Also
functions: | |
constants: |
author: ShaDoOoW, editor: Mistress