JumpIfFlagsSet

From Eternity Wiki
Revision as of 15:33, 23 October 2024 by Printz (talk | contribs) (Created page with "{{codepointer|description=Changes current frame to another if actor has the specified thing flags set. |usage='''A_JumpIfFlagsSet'''(''frame'', ''standard_flags'', ''mbf21_flags'') |parameters= *''frame'': frame to jump to if flags are set *''standard_flags'': set of vanilla DOOM flags to check. This means that only from the '''flags''' they are checked, not from '''flags2''' etc. *''mbf21_flags'': sum of MBF21 flag bits for a selection of non-vanilla DOOM flags. War...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

Changes current frame to another if actor has the specified thing flags set.

Usage

A_JumpIfFlagsSet(frame, standard_flags, mbf21_flags)

Parameters

  • frame: frame to jump to if flags are set
  • standard_flags: set of vanilla DOOM flags to check. This means that only from the flags they are checked, not from flags2 etc.
  • mbf21_flags: sum of MBF21 flag bits for a selection of non-vanilla DOOM flags. Warning: currently this must be a number, it won't work with mnemonic joinings.

Examples

No examples given.

Notes

As this codepointer is from MBF21, it's limited and doesn't support all of Eternity's thing flags.

See also