# Triggering Unit Property

Grammar — Triggering unit property
FlagsNative | Function

Returns the triggering unit property in response to “Unit Property Changes” events.

Returns — int<preset::Unit_Property>

native int EventUnitProperty();

# Supported triggers

Category: Unit / Properties

# Examples

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

        return true;
    }
    auto9FAC268D_val = EventUnitProperty();
    if (auto9FAC268D_val == c_unitPropEnergy) {
        DialogControlCreateInPanelFromTemplate(libSwaC_gv_zS_SwarmHeroUIPanel[lv_index], c_triggerControlTypeImage, "HotS_GameUnitFrame/HeroEnergyBarDamageTemplate/DamageBar");

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:9683

        return true;
    }
    autoB2BDD4C2_val = EventUnitProperty();
    if (autoB2BDD4C2_val == c_unitPropEnergy) {
        DialogControlCreateInPanelFromTemplate(libVCUI_gv_pU_VoidHeroUIPanel[lv_index], c_triggerControlTypeImage, "VoidShared_StatusBarTemplates/HeroUnitFrameTemplate/HealthBarDamageImage");

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:6823

        return true;
    }
    autoB2BDD4C2_val = EventUnitProperty();
    if (autoB2BDD4C2_val == c_unitPropEnergy) {
        DialogControlCreateInPanelFromTemplate(libNCUI_gv_nU_HeroPanel[lv_index], c_triggerControlTypeImage, "VoidShared_StatusBarTemplates/HeroUnitFrameTemplate/HealthBarDamageImage");

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:8107


    lv_heroGroup = PlayerGroupSingle(lv_player);
    autoB2BDD4C2_val = EventUnitProperty();
    if (autoB2BDD4C2_val == c_unitPropEnergy) {
        DialogControlCreateInPanelFromTemplate(libCOUI_gv_cU_HeroPanel[lv_index], c_triggerControlTypeImage, "HotS_GameUnitFrame/HeroEnergyBarDamageTemplate/DamageBar");

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:8560

        return true;
    }
    auto9FAC268D_val = EventUnitProperty();
    if (auto9FAC268D_val == c_unitPropEnergy) {
        DialogControlCreateInPanelFromTemplate(libA3DDD02B_gv_pP_HeroUIPanel[lv_index], c_triggerControlTypeImage, "VoidShared_StatusBarTemplates/HeroUnitFrameTemplate/HealthBarDamageImage");