GetWeaponType

From the Fallout3 GECK Wiki
Revision as of 16:04, 12 March 2011 by imported>JOG
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Returns the weapon type

Syntax

[help]
(int) ref.GetWeaponType item:ref 

Or:

(int) ref.GetWeapType item:ref

Notes:

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