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

Programming notes