User Tools

Site Tools


crpl:docs:func_awake

<- CRPL reference <- Vars and Functions

:awake

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. At game load time this function is called before the game 'loading' initialization screen is dismissed.

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

Examples

:Awake
   Trace("I Live")
crpl/docs/func_awake.txt · Last modified: 2024/02/10 15:02 by Apexian