# Triggering Effect Unit Type

FlagsNative | Function

# Arguments

Returns — string<gamelink::Unit>

native string EventPlayerEffectUsedUnitType(
	int inLocation,
);

# Supported triggers

Category: Environment / Effects

# Examples

mods/heroesmapmods/battlegroundmapmods/overwatchdata.stormmodbase.stormdata/LibOVER.galaxy:449

    // Conditions
    if (testConds) {
        if (!((EventPlayerEffectUsedUnitType(c_effectUnitTarget) == "HealingPulsePickup"))) {
            return false;
        }

mods/heroesmapmods/battlegroundmapmods/overwatchdata.stormmodbase.stormdata/LibOVER.galaxy:546

    // Conditions
    if (testConds) {
        if (!((EventPlayerEffectUsedUnitType(c_effectUnitTarget) == "DragonSpiritsPickup"))) {
            return false;
        }

mods/heroesmapmods/battlegroundmapmods/overwatchdata.stormmodbase.stormdata/LibOVER.galaxy:657

    // Conditions
    if (testConds) {
        if (!((EventPlayerEffectUsedUnitType(c_effectUnitTarget) == "TurretPickup"))) {
            return false;
        }

mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmodbase.stormdata/LibMSC2.galaxy:1797

    // Conditions
    if (testConds) {
        if (!((EventPlayerEffectUsedUnitType(c_effectUnitTarget) == "WarheadSingle"))) {
            return false;
        }

mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmodbase.stormdata/LibMSC2.galaxy:2223

    // Conditions
    if (testConds) {
        if (!((EventPlayerEffectUsedUnitType(c_effectUnitTarget) == "WarheadDropped"))) {
            return false;
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:16038

    // Automatic Variable Declarations
    // Variable Initialization
    lv_victimType = EventPlayerEffectUsedUnitType(c_effectUnitTarget);
    lv_missile = EventPlayerEffectUsedUnit(c_effectUnitSource);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:25176

    // Variable Initialization
    lv_hero = EventPlayerEffectUsedUnit(c_effectUnitCaster);
    lv_heroType = EventPlayerEffectUsedUnitType(c_effectUnitCaster);
    lv_heroReviveType = (CatalogFieldValueGet(c_gameCatalogUnit, lv_heroType, "ReviveType", c_playerAny));
    lv_event = (EventPlayerEffectUsed());

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:6991

    }

    auto520F5319_val = EventPlayerEffectUsedUnitType(c_effectUnitCaster);
    if (auto520F5319_val == "KerriganVoidCoopEconDropLT1") {
        PlayerScoreValueSetFromInt(EventPlayerEffectUsedUnitOwner(c_effectPlayerOrigin), "KerriganAssimilationResources", (PlayerScoreValueGetAsInt(EventPlayerEffectUsedUnitOwner(c_effectPlayerOrigin), "KerriganAssimilationResources")+5));

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:1062

    // Variable Initialization
    lv_u = EventPlayerEffectUsedUnit(c_effectUnitCaster);
    lv_uT = EventPlayerEffectUsedUnitType(c_effectUnitCaster);
    lv_p = EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster);
    lv_color = libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lv_p, false));