# Triggering Effect Launch Unit

Grammar — Triggering Effect Launch Unit
FlagsNative | Function

Returns — unit

native unit EventPlayerEffectUsedUnitLaunch();

# Supported triggers

Category: Environment / Effects

# Examples

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:7540

    }
    UnitBehaviorAdd(EventPlayerEffectUsedUnit(c_effectUnitCaster), "ArchangelMedivacInTransit", EventPlayerEffectUsedUnit(c_effectUnitCaster), 1);
    libNtve_gf_UnitCreateFacingPoint(1, "MercMedivac", c_unitCreateIgnorePlacement, lv_player, UnitGetPosition(EventPlayerEffectUsedUnitLaunch()), lv_rallyPoint, null);
    lv_medivac = UnitLastCreated();
    UnitSetPropertyFixed(UnitLastCreated(), c_unitPropHeight, 4.0);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:4536

    }

    UnitBehaviorAdd(EventPlayerEffectUsedUnitLaunch(), "PeriodicDamageRevealSourceCloakedRevealer", EventPlayerEffectUsedUnitImpact(), 1);
    return true;
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:4556

    }

    UnitBehaviorAdd(EventPlayerEffectUsedUnitLaunch(), "OneOffDamageRevealSourceCloakedRevealer", EventPlayerEffectUsedUnitImpact(), 1);
    return true;
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:18974

    // Automatic Variable Declarations
    // Variable Initialization
    lv_rexxar = EventPlayerEffectUsedUnitLaunch();
    lv_rexxarPlayer = UnitGetOwner(lv_rexxar);
    lv_target = EventPlayerEffectUsedUnitImpact();

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19044

    // Automatic Variable Declarations
    // Variable Initialization
    lv_misha = EventPlayerEffectUsedUnitLaunch();
    lv_rexxarPlayer = UnitGetOwner(lv_misha);
    lv_target = EventPlayerEffectUsedUnitImpact();

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SoundLib.galaxy:1465

    lv_healMinimum = 12.0;
    lv_impactPlayer = UnitGetOwner(EventPlayerEffectUsedUnitImpact());
    lv_launchPlayer = UnitGetOwner(EventPlayerEffectUsedUnitLaunch());
    lv_vOGroup = PlayerGroupEmpty();

mods/heromods/alexstrasza.stormmodbase.stormdata/LibHALE.galaxy:83

    // Variable Initialization
    lv_alexstrasza = EventPlayerEffectUsedUnitImpact();
    lv_targetUnit = EventPlayerEffectUsedUnitLaunch();
    lv_castingPlayer = EventPlayer();
    lv_alexstraszaHealthPercent = UnitGetPropertyFixed(lv_alexstrasza, c_unitPropLifePercent, c_unitPropCurrent);

mods/heromods/chromie.stormmodbase.stormdata/LibHCHR.galaxy:239

    // Conditions
    if (testConds) {
        if (!((UnitHasBehavior2(EventPlayerEffectUsedUnitLaunch(), "ChromieTemporalLoopTargetBehavior") == true))) {
            return false;
        }

mods/heromods/chromie.stormmodbase.stormdata/LibHCHR.galaxy:249

    }

    ActorSend(ActorFromScope(ActorScopeFromUnit(EventPlayerEffectUsedUnitLaunch()), "ChromieTemporalLoopTargetTrailFX"), "AnimGroupApply Teleport {} {} Instant");
    ActorCreate(ActorScopeFromUnit(EventPlayerEffectUsedUnitLaunch()), "ChromieTemporalLoopTargetTrailFX", null, null, null);
    ActorSend(libNtve_gf_ActorLastCreated(), "AnimBracketStart BSD {} Stand Death");

mods/heromods/chromie.stormmodbase.stormdata/LibHCHR.galaxy:250


    ActorSend(ActorFromScope(ActorScopeFromUnit(EventPlayerEffectUsedUnitLaunch()), "ChromieTemporalLoopTargetTrailFX"), "AnimGroupApply Teleport {} {} Instant");
    ActorCreate(ActorScopeFromUnit(EventPlayerEffectUsedUnitLaunch()), "ChromieTemporalLoopTargetTrailFX", null, null, null);
    ActorSend(libNtve_gf_ActorLastCreated(), "AnimBracketStart BSD {} Stand Death");
    return true;

mods/heromods/malganis.stormmodbase.stormdata/LibHMLG.galaxy:496

    // Automatic Variable Declarations
    // Variable Initialization
    lv_castingUnit = EventPlayerEffectUsedUnitLaunch();
    lv_targetUnit = EventPlayerEffectUsedUnitImpact();
    lv_castingPlayer = UnitGetOwner(lv_castingUnit);

mods/heromods/probius.stormmodbase.stormdata/LibHPRO.galaxy:255

    }

    lv_probiusPlayer = UnitGetOwner(EventPlayerEffectUsedUnitLaunch());
    lv_probius = libGame_gv_players[lv_probiusPlayer].lv_heroUnit;
    UnitCreateEffectUnit(lv_probius, "ProbiusPhotonCannonTowerDefenseReduceCooldown", lv_probius);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2145


    if ((UnitHasBehavior2(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected") == false)) {
        UnitBehaviorAdd(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected", EventPlayerEffectUsedUnitLaunch(), 1);
        gf_S2TrackUnitHitBySonar(EventPlayerEffectUsedUnitImpact());
    }

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2149

    }
    else {
        UnitBehaviorAdd(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected", EventPlayerEffectUsedUnitLaunch(), 1);
    }
    return true;

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:2145


    if ((UnitHasBehavior2(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected") == false)) {
        UnitBehaviorAdd(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected", EventPlayerEffectUsedUnitLaunch(), 1);
        gf_S2TrackUnitHitBySonar(EventPlayerEffectUsedUnitImpact());
    }

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:2149

    }
    else {
        UnitBehaviorAdd(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected", EventPlayerEffectUsedUnitLaunch(), 1);
    }
    return true;