GetWeaponType - Weapon

From Creation Kit
Jump to: navigation, search

SKSE Member of: Weapon Script

Returns the weapon type of this weapon. (This function requires SKSE)

Syntax

int Function GetWeaponType() native

Parameters

  • None

Return Value

The weapon type of this weapon.
0=Fists
1=Swords
2=Daggers
3=War Axes
4=Maces
5=Greatswords
6=Battleaxes AND Warhammers
7=Bows
8=Staff
9=Crossbows

Examples

; Obtain the weapon type of WeaponProperty
Int WeaponType = WeaponProperty.GetWeaponType()
If WeaponType == 3
   ;WeaponProperty is a war axe!
EndIf

See Also