Difference between revisions of "SetWeaponFlags1"
Jump to navigation
Jump to search
clarified
imported>Odessa m (typo) |
imported>Odessa (clarified) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = NVSE | |origin = NVSE | ||
|summary = Sets the first set of flags for | |summary = Sets the first set of flags for a passed weapon or [[calling reference]] to the specified bitmask (int). Bitmasks may be constructed using [[SetBit]] / [[ClearBit]]. | ||
|name = SetWeaponFlags1 | |name = SetWeaponFlags1 | ||
|alias = | |alias = | ||
|returnType = int | |returnType = Bitmask:int | ||
|referenceType = reference | |referenceType = reference | ||
|arguments = {{FunctionArgument | |arguments = {{FunctionArgument | ||
Line 18: | Line 18: | ||
<pre> | <pre> | ||
int FlagsBitMask | int FlagsBitMask | ||
SetWeaponFlags1 FlagsBitMask, WeapNV9mmPistol | SetWeaponFlags1 FlagsBitMask, WeapNV9mmPistol | ||
</pre> | </pre> | ||
== | ==Weapon Flags 1 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== | ||
*[[GetWeaponFlags1]] | *[[GetWeaponFlags1]] | ||
*[[SetWeaponFlags2]] | *[[SetWeaponFlags2]] | ||
*[[SetEquipmentSlotsMask]] | |||
*[[SetBit]] | *[[SetBit]] | ||
*[[ClearBit]] | *[[ClearBit]] | ||
[[Category:Functions_(NVSE)]] | [[Category:Functions_(NVSE)]] |