User Tools

Site Tools


crpl:docs:func_awake

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
crpl:docs:func_awake [2013/10/26 00:55] – created ThirdPartycrpl:docs:func_awake [2014/01/30 19:46] virgilw
Line 9: Line 9:
  
 === Description === === Description ===
-Special function that is automatically called whenever the save file is loaded.  Necessary for repeating commands that are not persisted across saves, such as [[crpl:docs:SetFieldCell]].+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 [[crpl:docs:SetFieldCell]].
 === Examples === === Examples ===
 <code> <code>
-example goes here+:Awake 
 +   Trace("I Live")
 </code>  </code> 
  
crpl/docs/func_awake.txt · Last modified: 2024/02/10 15:02 by Apexian