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 00:50] Sanian4rpl:commands:func_awake [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
- <=[[4rpl:start| Index]]+~~NOTOC~~ 
 +<= [[4rpl:start|Index]]
  
 ====== :Awake ====== ====== :Awake ======
Line 5: Line 6:
 ===== Description ===== ===== Description =====
  
-Naming a function ":Awake" will make it so that it is automatically 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 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 17:
 </code> </code>
  
-~~NOTOC~~+===== See Also ===== 
 + 
 +[[cw4:Programming notes]]
  
4rpl/commands/func_awake.1610671858.txt.gz · Last modified: 2025/02/14 14:56 (external edit)