User Tools

Site Tools


crpl:docs:func_awake

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Vars and Functions

:awake

ArgumentsResultNotation

Description

Special function that is automatically called whenever a core is created. Whenever a core is created (either dynamically or at a game load), this function is called in the first game update but before the first core script evaluation. So this function is not called until the game first is unpaused.

Can be useful for repeating commands that are not persisted across saves, such as SetFieldCell.

Examples

:Awake
   Trace("I Live")
crpl/docs/func_awake.1391129167.txt.gz · Last modified: 2014/10/01 15:02 (external edit)