GetEquippedWeaponModFlags

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns a combined value of the bits(int) of the equipped weapon mods for the currently equipped weapon of the calling reference.

Syntax

[help]
(BitMask:int) actorReference.GetEquippedWeaponModFlags 

Example

int ModsBitMask
set ModsBitMask to PlayerREF.GetEquippedWeaponModFlags

if ModsBitMask == 3  ;first two weapon mods are equipped.

elseif ModsBitMask == 7  ;all weapon mods are equipped.

elseif ModsBitMask == 2  ;only the second weapon mod is equipped.

endif

Weapon Mod Flags

Flag Bit Weapon Mod
1 0 Weapon Mod 1
2 1 Weapon Mod 2
4 2 Weapon Mod 3

See Also