proc_mode
LC
Determines the scheduler order and behavior of the function. In some cases it is desired to run a certain function after all other functions, for instance when the function requires that an entity
or camera position is already set within the same frame cycle. Otherwise, the execution order of functions is determined
by the order of their calls.
Range:
0 - normal function behavior.
PROC_EARLY - the current function is moved to the beginning of the function scheduler
list,
and is thus executed before all other functions
PROC_LATE - the current function is moved to the end of the function scheduler
list, and is thus executed after all other functions
PROC_GLOBAL - the current entity function is not terminated when its my entity is removed by ent_remove, or when the level is changed.
A7.76
PROC_NOFREEZE - the function continues to run regardless of freeze_mode.
A7.82
Type:
var
Remarks:
-
proc_mode must be set before a wait() call. It is automatically reset by wait() for not affecting further functions, but restored when the function continues. In a wait() loop, set it inside the loop.
Example (lite-C):
function latefunction()
{
...
proc_mode = PROC_LATE;
wait(1);
...
}
See also:
function, wait(), proc_late,
proc_status,
ent_remove
► latest
version online