IsInMenuMode - Utility

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Utility Script

Obtains whether the game is currently in "menu mode" or not. Menu mode is basically defined as whenever the game is paused, usually because some menu is showing. Dialogue does not pause the game, and so does not put the game into "menu mode".

Syntax[edit | edit source]

bool Function IsInMenuMode() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

Whether the game is currently in "menu mode" or not.

Examples[edit | edit source]

if (!Utility.IsInMenuMode())
  ; do game stuff! we aren't in a menu
endIf

Notes[edit | edit source]

  • Dialogue, because the game isn't paused, will not put the game into "menu mode".

See Also[edit | edit source]