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.
0 - normal function behavior.
PROC_EARLY - the current function is moved to the beginning of the function scheduler
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.
PROC_NOFREEZE - the function continues to run regardless of freeze_mode.
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.
proc_mode = PROC_LATE;
function, wait(), proc_late,