Difference between revisions of "GetWeaponFlags2"
Jump to navigation
Jump to search
clarified
imported>Odessa (adapted from nvsewhatsnew) |
imported>Odessa (clarified) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = NVSE | |origin = NVSE | ||
|summary = Returns the second set of flags for the specified weapon or calling reference, as a bitmask (int). | |summary = Returns the second set of flags for the specified weapon or [[calling reference]], as a bitmask (int). | ||
See [[GetEquipmentSlotsMask]] for an example method of checking for a specific bit. | |||
|name = GetWeaponFlags2 | |name = GetWeaponFlags2 | ||
|alias = | |alias = | ||
|returnType = int | |returnType = Bitmask:int | ||
|referenceType = reference | |referenceType = reference | ||
|arguments = {{FunctionArgument | |arguments = {{FunctionArgument | ||
Line 17: | Line 19: | ||
set FlagsBitMask to GetWeaponFlags2 WeapNV9mmPistol | set FlagsBitMask to GetWeaponFlags2 WeapNV9mmPistol | ||
</pre> | </pre> | ||
== | ==Weapon Flags 2 Bit Fields== | ||
*1 = player only | *0 (1) = player only | ||
*2 = NPCs use ammo | *1 (2) = NPCs use ammo | ||
*4 = no jam after reload | *2 (4) = no jam after reload | ||
*8 = override action points | *3 (8) = override action points | ||
*16 = minor crime | *4 (16) = minor crime | ||
*32 = range fixed | *5 (32) = range fixed | ||
*64 = not used in normal combat | *6 (64) = not used in normal combat | ||
*128 = override damage to weapon mult | *7 (128) = override damage to weapon mult | ||
*256 = don't use third-person IS animations | *8 (256) = don't use third-person IS animations | ||
*512 = short burst | *9 (512) = short burst | ||
*1024 = rumble alternate | *10 (1024) = rumble alternate | ||
*2048 = long burst | *11 (2048) = long burst | ||
==See Also== | ==See Also== | ||
*[[SetWeaponFlags2]] | *[[SetWeaponFlags2]] | ||
*[[ | *[[GetWeaponFlags1]] | ||
*[[SetBit]] | *[[SetBit]] | ||
*[[ClearBit]] | *[[ClearBit]] | ||
[[Category:Functions_(NVSE)]] | [[Category:Functions_(NVSE)]] |