Difference between revisions of "SetWeaponFlags1"
Jump to navigation
Jump to search
imported>Odessa (adapted from nvse_whatsnew) |
imported>Odessa (clarified) |
||
(One intermediate revision by the same user not shown) | |||
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 | |||
</pre> | </pre> | ||
==Flags== | ==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)]] |
Latest revision as of 05:21, 18 February 2015
< [[::Category:Functions|Category:Functions]]
A function added by the New Vegas Script Extender.
Description
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.
Syntax
(Bitmask:int) reference.SetWeaponFlags1 FlagsBitMask:int Weapon:form
Example
int FlagsBitMask SetWeaponFlags1 FlagsBitMask, WeapNV9mmPistol
Weapon Flags 1 Bit Fields
- 0 (1) = ignores normal weapon resist
- 1 (2) = is automatic
- 2 (4) = has scope
- 3 (8) = can't drop
- 4 (16) = hide backpack
- 5 (32) = embedded weapon
- 6 (64) = don't use first-person IS animations
- 7 (128) = nonplayable