proc_mode

 LC  Normally the execution order of functions is determined by the order of their calls. By setting this variable to PROC_LATE before a wait() call, the current function is moved to the very end of the function scheduler list, and is thus executed after all other functions. This can be useful, for instance, when the function requires that an entity or camera position is calculated before within the same frame. By setting this variable to PROC_EARLY before a wait() call, the current function is moved to the very beginning of the function scheduler list, and is thus executed before all other functions.

Range:

0, PROC_EARLY, PROC_LATE

Type:

var

Remarks:

 A7.07  proc_mode is automatically reset by wait() for not affecting further functions, but restored when the function continues after the wait() call.

Example:

function latefunction()
{
  proc_late(); // C-Script
  proc_mode = PROC_LATE; // lite-C
 	... 
  wait(1);
  ...
}

See also:

function, wait(), proc_late, proc_status, attaching entities ► latest version online