<- CRPL reference <- Utility Commands

InvocationCount

ArgumentsResultNotation
-Invocation Count – i1

Description

Pushes the number of times the Core has been invoked. This count resets each mission load. The first call returns 1. Useful for doing something the first time a mission loads, and each time a mission loads.

Examples

if (InvocationCount eq (1))
   #Only do this on the first invocation each time the mission loads.
   Trace("Something")
endif