Difference between revisions of "SetWeaponFlags2"
clarified
imported>Odessa (adapted from nvsewhatsnew) |
imported>Odessa (clarified) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = NVSE | |origin = NVSE | ||
|summary = Sets the second set of flags for | |summary = Sets the second set of flags for a passed weapon or [[calling reference]] to the specified bitmask (int). Bitmasks should be built using [[SetBit]] / [[ClearBit]]. | ||
|name = SetWeaponFlags2 | |name = SetWeaponFlags2 | ||
|alias = | |alias = | ||
|returnType = | |returnType = none | ||
|referenceType = reference | |referenceType = reference | ||
|arguments = {{FunctionArgument | |arguments = {{FunctionArgument | ||
Line 18: | Line 18: | ||
<pre> | <pre> | ||
int FlagsBitMask | int FlagsBitMask | ||
SetWeaponFlags2 FlagsBitMask, WeapNV9mmPistol | SetWeaponFlags2 FlagsBitMask, 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== | ||
*[[GetWeaponFlags2]] | *[[GetWeaponFlags2]] | ||
*[[SetWeaponFlags1]] | *[[SetWeaponFlags1]] | ||
*[[SetEquipmentSlotsMask]] | |||
*[[SetBit]] | *[[SetBit]] | ||
*[[ClearBit]] | *[[ClearBit]] | ||
[[Category:Functions_(NVSE)]] | [[Category:Functions_(NVSE)]] |