Difference between revisions of "GetWeaponFlags1"
Jump to navigation
Jump to search
clarified
imported>Odessa (adapted from nvse_whatsnew) |
imported>Odessa (clarified) |
||
Line 2: | Line 2: | ||
|origin = NVSE | |origin = NVSE | ||
|summary = Returns the first set of flags for the specified weapon or calling reference, as a bitmask (int). | |summary = 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. | |||
|name = GetWeaponFlags1 | |name = GetWeaponFlags1 | ||
|alias = | |alias = | ||
|returnType = int | |returnType = Bitmask:int | ||
|referenceType = reference | |referenceType = reference | ||
|arguments = {{FunctionArgument | |arguments = {{FunctionArgument | ||
Line 15: | Line 17: | ||
<pre> | <pre> | ||
int FlagsBitMask | int FlagsBitMask | ||
set FlagsBitMask to | set FlagsBitMask to GetWeaponFlags1 WeapNV9mmPistol | ||
</pre> | </pre> | ||
== | ==Bit fields== | ||
*1 = ignores normal weapon resist | *0 (1) = ignores normal weapon resist | ||
*2 = is automatic | *1 (2) = is automatic | ||
*4 = has scope | *2 (4) = has scope | ||
*8 = can't drop | *3 (8) = can't drop | ||
*16 = hide backpack | *4 (16) = hide backpack | ||
*32 = embedded weapon | *5 (32) = embedded weapon | ||
*64 = don't use first-person IS animations | *6 (64) = don't use first-person IS animations | ||
*128 = nonplayable | *7 (128) = nonplayable | ||
==See Also== | ==See Also== | ||
*[[SetWeaponFlags1]] | *[[SetWeaponFlags1]] | ||
*[[GetWeaponFlags2]] | *[[GetWeaponFlags2]] | ||
*[[GetEquipmentSlotsMask]] | |||
*[[SetBit]] | *[[SetBit]] | ||
*[[ClearBit]] | *[[ClearBit]] | ||
[[Category:Functions_(NVSE)]] | [[Category:Functions_(NVSE)]] |