User Tools

Site Tools


4rpl:commands:func_gameloaded

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:func_gameloaded [2021/01/14 15:27] – created virgilw4rpl:commands:func_gameloaded [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-~~NOTOC~~ + <=[[4rpl:start| Index]] 
-<=[[4rpl:start| Index]]+ 
 +====== :GameLoaded ====== 
 + 
 +===== Description ===== 
 + 
 +":GameLoaded" is called whenever a unit with an attached script is loaded from a saved mission. This callback does not get called when a unit is created dynamically at runtime. 
 + 
 +In Mverse, this function is called for clients on unit scripts, but is not called for clients in Global Control scripts. 
 + 
 +===== Example ===== 
 + 
 +<code 4rpl> 
 +:GameLoaded 
 +   trace("Game Loaded"
 +</code> 
 + 
 +===== See Also ===== 
 + 
 +[[cw4:Programming notes]] 
  
4rpl/commands/func_gameloaded.1610638069.txt.gz · Last modified: 2025/02/14 14:56 (external edit)