freeze_mode
Pause a running game. When set to 1 or above,
entity and particle functions and physics are stopped,
causing the level to
freeze completely. Resetting the variable to 0 will cause
all stopped functions to resume at the point when freeze_mode
was set.
Range:
0 - All functions are running normally (default).
1 - Entity functions (my != NULL) and particle
functions are paused.
2 - All functions are paused,
except those that had proc_mode set to PROC_NOFREEZE.
4 - Particle
functions are paused and particle lifespan does not count down. 8.50
Type:
var
Example:
function pause()
{
if(freeze_mode == 2) // all frozen??
{
freeze_mode = 0; // go on
}
else
{
freeze_mode = 2; // pause everything
}
}
See also:
total_secs
, proc_mode, game_save► latest
version online