User Tools

Site Tools


4rpl:commands:func_awake

Index

:Awake

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 CreateUnit.

Please refer to Programming Notes for an in-depth discussion and comparison between :Once, :GameLoaded, and :Awake.

Examples

:Awake
   SetUnitDebugText(self "I Live")

See Also

4rpl/commands/func_awake.txt · Last modified: 2023/06/10 15:53 by Grabz