User Tools

Site Tools


4rpl:commands:func_awake

This is an old revision of the document!


Index

:Awake

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.

Examples

:Awake
   SetUnitDebugText(self "I Live")
4rpl/commands/func_awake.1610671858.txt.gz · Last modified: 2021/01/14 19:50 by Sanian