Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| 4rpl:commands:func_awake [2021/01/15 10:56] – here you go, K75 ;) Sanian | 4rpl:commands:func_awake [2025/02/14 14:57] (current) – external edit 127.0.0.1 |
|---|
| ===== Description ===== | ===== Description ===== |
| |
| ":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]]. | '':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 ===== |
| SetUnitDebugText(self "I Live") | SetUnitDebugText(self "I Live") |
| </code> | </code> |
| | |
| | ===== See Also ===== |
| | |
| | [[cw4:Programming notes]] |
| | |