GetWeaponFlags1

From the Fallout3 GECK Wiki
Revision as of 06:07, 18 February 2015 by imported>Odessa (clarified)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::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

[help]
(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