Description
Returns the state of game focus changed by pressing ALT+TAB or similar action.
Syntax
isGameFocused
Returns: Boolean - true if game window is focused, false if not
Examples
Example 1
if (!isGameFocused) then { endMission "End" };
Results appear below as you type; use the arrow keys to move through them.
Returns the state of game focus changed by pressing ALT+TAB or similar action.
isGameFocused
Returns: Boolean - true if game window is focused, false if not
if (!isGameFocused) then { endMission "End" };