GetWeaponType - Weapon

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Weapon Script

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

Syntax[edit | edit source]

int Function GetWeaponType() native

Parameters[edit | edit source]

  • None

Return Value[edit | edit source]

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[edit | edit source]

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

See Also[edit | edit source]