GetEquippedWeaponType

From GECK
Jump to: navigation, search


A function added by the ShowOff NVSE Plugin.

Description

Returns the calling actors' equipped weapon's Type (as seen in the Art and Sound tab). If no weapon is equipped, defaults to 0.

Note that while the GECK labels this as "Animation Type", weapon animation types are defined internally by converting this Weapon type into an Anim Type, as seen with GetWeaponAnimType.

Syntax

[help]
(weapType:int) ActorRefr.GetEquippedWeaponType 

Notes:

Index Weapon Type
0 HandToHandMelee
1 OneHandMelee
2 TwoHandMelee
3 OneHandPistol
4 OneHandPistolEnergy
5 TwoHandRifle
6 TwoHandAutomatic
7 TwoHandRifleEnergy
8 TwoHandHandle
9 TwoHandLauncher
10 OneHandGrenade
11 OneHandMine
12 OneHandLunchboxMine
13 OneHandThrown (NV only; Spears)

See Also