GetWeaponType

From GECK
(Redirected from GetWeapType)
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Returns the Type (as seen in the Art and Sound tab) for the Weapon BaseForm. If weapon is omitted and a calling reference is provided, that reference's BaseForm is used.

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]
(type:int) weaponRefr.GetWeaponType weapon:baseform 

Or:

(type:int) weaponRefr.GetWeapType weapon:baseform 

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