GetWeaponFlags1

< [[::Category:Functions|Category:Functions]]

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 bitmask (int).

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

Syntax

(Bitmask:int) reference.GetWeaponFlags1 Weapon:form

Example

int FlagsBitMask
set FlagsBitMask to GetWeaponFlags1 WeapNV9mmPistol

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

See Also