GetWeaponFlags2

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns the second set of flags for the specified weapon or calling reference, as a combined value of the bits (int).

See GetEquipmentSlotsMask for an example method of checking for a specific bit.

Syntax

[help]
(Mask:int) reference.GetWeaponFlags2 Weapon:form 

Example

int FlagsBitMask
set FlagsBitMask to GetWeaponFlags2 WeapNV9mmPistol

Weapon Flags 2 Bit Fields

Flag Bit Equipment Mask
1 0 player only
2 1 NPCs use ammo
4 2 no jam after reload
8 3 override action points
16 4 minor crime
32 5 range fixed
64 6 not used in normal combat
128 7 override damage to weapon mult
256 8 don't use third-person IS animations
512 9 short burst
1024 10 rumble alternate
2048 11 long burst
4096 12 scope has night vision
8192 13 scope from mod

See Also