GetWeaponFlags1

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

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

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

Syntax

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

Example

int FlagsMask
set FlagsMask to GetWeaponFlags1 WeapNV9mmPistol

Bit fields

Flag Bit Equipment Mask
1 0 ignores normal weapon resist
2 1 is automatic
4 2 has scope
8 3 can't drop
16 4 hide backpack
32 5 embedded weapon
64 6 don't use first-person IS animations
128 7 nonplayable

See Also