GetFlagsLow

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns the first set of individual flags for the specified form, which may be of any type as a combined value of the bits (int). Beware that not all flags should be modified, or have a (known) purpose, and their effects may differ dependent on form type.

See GetEquipmentSlotsMask for an example of checking for a specific bit.

Syntax

[help]
(Mask:int) reference.GetFlagsLow Target:form 

Example

int FlagsMask
set FlagsMask to GetFlagsLow Weap10mmPistol

Bit fields

This is adapted from FNVEdit. As a minimum, one should not make changes to anything labelled "Runtime".

Flag Bit Setting
1 0 ESM
2 1 Unknown 1
4 2 Unknown 2 (Runtime) / Plugin selected (Editor)
8 3 Form cannot be saved (Runtime) / Plugin active (Editor)
16 4 Form initialized (Runtime) / Plugin cannot be active or selected (Editor)
32 5 Deleted
64 6 Border Region / Has Tree LOD / Constant / Hidden From Local Map / Plugin Endian
128 7 Turn Off Fire
256 8 Inaccessible
512 9 Casts shadows / On Local Map / Motion Blur
1024 10 Quest item / Persistent reference
2048 11 Initially disabled
4096 12 Ignored
8192 13 No Voice Filter
16384 14 Cannot Save (Runtime)
32768 15 Visible when distant

See Also