SetWeaponFlags1

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Sets the first set of flags for a passed weapon or calling reference to the specified mask (int). Masks may be constructed using SetBit / ClearBit.

Syntax

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

Example

int FlagsMask

SetWeaponFlags1 FlagsMask, WeapNV9mmPistol

Weapon Flags 1 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