User Tools

Site Tools


crpl:docs:invocationcount

<- 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
crpl/docs/invocationcount.txt · Last modified: 2021/02/05 11:44 by Karsten75