# Triggering Effect Launch Unit
Grammar — Triggering Effect Launch Unit
Flags —Native
|Function
Returns — unit
native unit EventPlayerEffectUsedUnitLaunch();
# Supported triggers
- Effect Used — TriggerAddEventPlayerEffectUsed
- Effect Used From Scope — TriggerAddEventPlayerEffectUsedFromScope
# Related
Category: Environment / Effects
- Create Explosion At Point —
void
— libNtve_gf_CreateExplosionAtPoint - Create Effect At Point (From Player) —
void
— PlayerCreateEffectPoint - Create Effect On Unit (From Player) —
void
— PlayerCreateEffectUnit - Create Effect At Point (From Unit) —
void
— UnitCreateEffectPoint - Create Effect On Unit (From Unit) —
void
— UnitCreateEffectUnit - Damage Unit (From Unit) —
void
— UnitDamage - Player Can Create Effect At Point —
bool
— libNtve_gf_PlayerCanCreateEffectAtPoint - Player Can Create Effect On Unit —
bool
— libNtve_gf_PlayerCanCreateEffectOnUnit - Unit Can Create Effect At Point —
bool
— libNtve_gf_UnitCanCreateEffectAtPoint - Unit Can Create Effect On Unit —
bool
— libNtve_gf_UnitCanCreateEffectOnUnit - Destroy Effects —
void
— GameDestroyEffects - Effect Used —
void
— TriggerAddEventPlayerEffectUsed - Effect Used From Scope —
void
— TriggerAddEventPlayerEffectUsedFromScope - Triggering Effect Used —
string
<gamelink::Effect> — EventPlayerEffectUsed - Triggering Effect Point —
point
— EventPlayerEffectUsedPoint - Triggering Effect Unit —
unit
— EventPlayerEffectUsedUnit - Triggering Effect Item —
unit
— EventPlayerEffectUsedItem - Triggering Effect Impact Unit —
unit
— EventPlayerEffectUsedUnitImpact - Triggering Effect Launch Unit —
unit
— EventPlayerEffectUsedUnitLaunch - Triggering Effect Unit Owner —
int
— EventPlayerEffectUsedUnitOwner - Triggering Effect Unit Type —
string
<gamelink::Unit> — EventPlayerEffectUsedUnitType - Triggering Effect Item Type —
string
<gamelink::Unit> — EventPlayerEffectUsedItemType - Triggering Effect Amount (Integer) —
int
— EventPlayerEffectUsedAmountInt - Triggering Effect Amount (Real) —
fixed
— EventPlayerEffectUsedAmountFixed - Triggering Effect Source Behavior —
string
<gamelink::Behavior> — EventPlayerEffectUsedSourceBehavior - Triggering Effect Weapon —
string
<gamelink::Weapon> — EventPlayerEffectUsedWeapon - Triggering Effect Ability —
string
<gamelink::Abil> — EventPlayerEffectUsedAbil
# Examples
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:4536
}
UnitBehaviorAdd(EventPlayerEffectUsedUnitLaunch(), "PeriodicDamageRevealSourceCloakedRevealer", EventPlayerEffectUsedUnitImpact(), 1);
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:4556
}
UnitBehaviorAdd(EventPlayerEffectUsedUnitLaunch(), "OneOffDamageRevealSourceCloakedRevealer", EventPlayerEffectUsedUnitImpact(), 1);
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:18974
// Automatic Variable Declarations
// Variable Initialization
lv_rexxar = EventPlayerEffectUsedUnitLaunch();
lv_rexxarPlayer = UnitGetOwner(lv_rexxar);
lv_target = EventPlayerEffectUsedUnitImpact();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19044
// Automatic Variable Declarations
// Variable Initialization
lv_misha = EventPlayerEffectUsedUnitLaunch();
lv_rexxarPlayer = UnitGetOwner(lv_misha);
lv_target = EventPlayerEffectUsedUnitImpact();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SoundLib.galaxy:1465
lv_healMinimum = 12.0;
lv_impactPlayer = UnitGetOwner(EventPlayerEffectUsedUnitImpact());
lv_launchPlayer = UnitGetOwner(EventPlayerEffectUsedUnitLaunch());
lv_vOGroup = PlayerGroupEmpty();
mods/heromods/alexstrasza.stormmod — base.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.stormmod — base.stormdata/LibHCHR.galaxy:239
// Conditions
if (testConds) {
if (!((UnitHasBehavior2(EventPlayerEffectUsedUnitLaunch(), "ChromieTemporalLoopTargetBehavior") == true))) {
return false;
}
mods/heromods/chromie.stormmod — base.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.stormmod — base.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.stormmod — base.stormdata/LibHMLG.galaxy:496
// Automatic Variable Declarations
// Variable Initialization
lv_castingUnit = EventPlayerEffectUsedUnitLaunch();
lv_targetUnit = EventPlayerEffectUsedUnitImpact();
lv_castingPlayer = UnitGetOwner(lv_castingUnit);
mods/heromods/probius.stormmod — base.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.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2145
if ((UnitHasBehavior2(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected") == false)) {
UnitBehaviorAdd(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected", EventPlayerEffectUsedUnitLaunch(), 1);
gf_S2TrackUnitHitBySonar(EventPlayerEffectUsedUnitImpact());
}
mods/novastoryassets.sc2mod — base3.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.sc2map — MapScript.galaxy:2145
if ((UnitHasBehavior2(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected") == false)) {
UnitBehaviorAdd(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected", EventPlayerEffectUsedUnitLaunch(), 1);
gf_S2TrackUnitHitBySonar(EventPlayerEffectUsedUnitImpact());
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:2149
}
else {
UnitBehaviorAdd(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected", EventPlayerEffectUsedUnitLaunch(), 1);
}
return true;