Headcannon Game Engine Script Commands - Math Operations (Flags)


Any variable can be used as a "Bitfield" instead of a full value. Each Bit in this "Bitfield" is refered to as a "Flag".

Each variable used as a "Bitfield" contains 32 "Flags" that can be turned "on" or "off" (the value of 1 or 0).

"Flags" are a nice way to save variable space when there are several values that can be expressed simply as "On"/"Off", "True"/"False", etc

Flag IDs for each variable are always numbered 0 - 31.

Index:




Descriptions:




Examples: