User Tools

Site Tools


4rpl:commands:func_awake

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:func_awake [2021/01/15 05:56] – here you go, K75 ;) Sanian4rpl:commands:func_awake [2023/06/10 15:53] (current) Grabz
Line 6: Line 6:
 ===== Description ===== ===== Description =====
  
-":Awakeis called whenever a unit with this script attached is created. This can happen at game load, or during a game when a unit is created with [[4rpl:commands:createunit|CreateUnit]].+'':Awake''  is called whenever a unit with this script attached is created. This can happen at game load, or during a game when a unit is created with [[4rpl:commands:createunit|CreateUnit]]
 + 
 +Please refer to [[cw4:Programming Notes]] for an in-depth discussion and comparison between ''[[func_Once| :Once]]'', ''[[func_GameLoaded|:GameLoaded]]'', and ''[[func_Awake|:Awake]]''.
  
 ===== Examples ===== ===== Examples =====
Line 14: Line 16:
    SetUnitDebugText(self "I Live")    SetUnitDebugText(self "I Live")
 </code> </code>
 +
 +===== See Also =====
 +
 +[[cw4:Programming notes]]
 +
4rpl/commands/func_awake.1610708204.txt.gz · Last modified: 2021/01/15 05:56 by Sanian