SetWeaponFlags1
Jump to navigation
Jump to search
< [[::Category:Functions|Category:Functions]]
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 bitmask (int). Bitmasks may be constructed using SetBit / ClearBit.
Syntax
(Bitmask:int) reference.SetWeaponFlags1 FlagsBitMask:int Weapon:form
Example
int FlagsBitMask SetWeaponFlags1 FlagsBitMask, WeapNV9mmPistol
Weapon Flags 1 Bit Fields
- 0 (1) = ignores normal weapon resist
- 1 (2) = is automatic
- 2 (4) = has scope
- 3 (8) = can't drop
- 4 (16) = hide backpack
- 5 (32) = embedded weapon
- 6 (64) = don't use first-person IS animations
- 7 (128) = nonplayable