# Ability That Created Unit

Grammar — Ability that created unit
FlagsNative | Function

Returns the ability that created the unit. Used in response to “Unit Is Created”.

Returns — string [ gamelink::Abil ]

native string EventUnitCreatedAbil();

# Supported triggers

Category: Ability / Basic

# Examples

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L18704
EventUnitCreatedAbil()

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L10666
EventUnitCreatedAbil()

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L15833
EventUnitCreatedAbil()

# mods/heromods/samuro.stormmod

LibHSAM.galaxy

// L1065
EventUnitCreatedAbil()

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L18237
EventUnitCreatedAbil()
// L18659
EventUnitCreatedAbil()
// L18659
EventUnitCreatedAbil()