# Behavior That Created Unit

Grammar — Behavior that created unit
FlagsNative | Function

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

Returns — string<gamelink::Behavior>

native string EventUnitCreatedBehavior();

# Supported triggers

Category: Ability / Basic

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18704

        }

        if (!(((EventUnitCreatedAbil() != null) || (EventUnitCreatedBehavior() != null)))) {
            return false;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10666

        }

        if (!(((EventUnitCreatedAbil() != null) || (EventUnitCreatedBehavior() != null)))) {
            return false;
        }