# Triggering Effect Impact Unit
Grammar — Triggering Effect Impact Unit
Flags —Native
|Function
Returns — unit
native unit EventPlayerEffectUsedUnitImpact();
# 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/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:5751
// Variable Initialization
lv_targetUnit = EventPlayerEffectUsedUnitImpact();
// Conditions
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:5751
// Variable Initialization
lv_targetUnit = EventPlayerEffectUsedUnitImpact();
// Conditions
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:7511
// Conditions
if (testConds) {
if (!((UnitGetType(EventPlayerEffectUsedUnitImpact()) == "MedicMedivacDropship"))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:7533
auto8E7067A4_var = PlayerGroupNextPlayer(auto8E7067A4_g, auto8E7067A4_var);
if (auto8E7067A4_var<0) { break; }
if ((libPVEM_gf_PvEPlayerIsValidHumanPlayer(auto8E7067A4_var) == false) && (UnitIsAlive(libGame_gv_players[auto8E7067A4_var].lv_heroUnit) == true) && (DistanceBetweenPoints(UnitGetPosition(EventPlayerEffectUsedUnitImpact()), UnitGetPosition(libGame_gv_players[auto8E7067A4_var].lv_heroUnit)) < 14.0)) {
UnitDestroyAIThinkTree(libGame_gv_players[auto8E7067A4_var].lv_heroUnit);
UnitIssueOrder(libGame_gv_players[auto8E7067A4_var].lv_heroUnit, OrderTargetingUnit(AbilityCommand("CaptureMacGuffin", 0), EventPlayerEffectUsedUnitImpact()), c_orderQueueReplace);
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:7535
if ((libPVEM_gf_PvEPlayerIsValidHumanPlayer(auto8E7067A4_var) == false) && (UnitIsAlive(libGame_gv_players[auto8E7067A4_var].lv_heroUnit) == true) && (DistanceBetweenPoints(UnitGetPosition(EventPlayerEffectUsedUnitImpact()), UnitGetPosition(libGame_gv_players[auto8E7067A4_var].lv_heroUnit)) < 14.0)) {
UnitDestroyAIThinkTree(libGame_gv_players[auto8E7067A4_var].lv_heroUnit);
UnitIssueOrder(libGame_gv_players[auto8E7067A4_var].lv_heroUnit, OrderTargetingUnit(AbilityCommand("CaptureMacGuffin", 0), EventPlayerEffectUsedUnitImpact()), c_orderQueueReplace);
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:1999
// Conditions
if (testConds) {
if (!((UnitHasBehavior2(EventPlayerEffectUsedUnitImpact(), "PickupRevealer") == true))) {
return false;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:2362
// Conditions
if (testConds) {
if (!((UnitHasBehavior2(EventPlayerEffectUsedUnitImpact(), "PickupRevealer") == true))) {
return false;
}
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:7632
// Automatic Variable Declarations
// Variable Initialization
lv_target = EventPlayerEffectUsedUnitImpact();
lv_player = UnitGetOwner(lv_target);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:12058
// Automatic Variable Declarations
// Variable Initialization
lv_target = EventPlayerEffectUsedUnitImpact();
lv_player = UnitGetOwner(lv_target);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:18976
lv_rexxar = EventPlayerEffectUsedUnitLaunch();
lv_rexxarPlayer = UnitGetOwner(lv_rexxar);
lv_target = EventPlayerEffectUsedUnitImpact();
// Actions
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19046
lv_misha = EventPlayerEffectUsedUnitLaunch();
lv_rexxarPlayer = UnitGetOwner(lv_misha);
lv_target = EventPlayerEffectUsedUnitImpact();
// Conditions
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:21522
// Automatic Variable Declarations
// Variable Initialization
lv_target = EventPlayerEffectUsedUnitImpact();
lv_player = UnitGetOwner(lv_target);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:22615
// Automatic Variable Declarations
// Variable Initialization
lv_target = EventPlayerEffectUsedUnitImpact();
lv_player = UnitGetOwner(lv_target);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:22945
// Automatic Variable Declarations
// Variable Initialization
lv_target = EventPlayerEffectUsedUnitImpact();
lv_player = UnitGetOwner(lv_target);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:23558
}
UnitCreateEffectPointWithSource(EventPlayerEffectUsedUnitImpact(), "TinkerDethLazorFirinMahLazorzTargetPersistent", Point(libGDHL_gv_heroTinkerFirinMahLazorzMousePositionX[lv_player], libGDHL_gv_heroTinkerFirinMahLazorzMousePositionY[lv_player]), c_gameCatalogAbil, "TinkerDethLazorCharged");
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SoundLib.galaxy:1464
// Variable Initialization
lv_healMinimum = 12.0;
lv_impactPlayer = UnitGetOwner(EventPlayerEffectUsedUnitImpact());
lv_launchPlayer = UnitGetOwner(EventPlayerEffectUsedUnitLaunch());
lv_vOGroup = PlayerGroupEmpty();
mods/heroesmapmods/battlegroundmapmods/overwatchdata.stormmod — base.stormdata/LibOVER.galaxy:345
// Variable Initialization
lv_bossUnit = EventPlayerEffectUsedUnit(c_effectUnitCaster);
lv_targetUnit = EventPlayerEffectUsedUnitImpact();
lv_targetAllyTeam = libGame_gf_TeamNumberOfPlayer(UnitGetOwner(lv_targetUnit));
lv_targetEnemyTeam = libGame_gf_EnemyTeam(lv_targetAllyTeam);
mods/heromods/alexstrasza.stormmod — base.stormdata/LibHALE.galaxy:82
// Automatic Variable Declarations
// Variable Initialization
lv_alexstrasza = EventPlayerEffectUsedUnitImpact();
lv_targetUnit = EventPlayerEffectUsedUnitLaunch();
lv_castingPlayer = EventPlayer();
mods/heromods/malganis.stormmod — base.stormdata/LibHMLG.galaxy:497
// Variable Initialization
lv_castingUnit = EventPlayerEffectUsedUnitLaunch();
lv_targetUnit = EventPlayerEffectUsedUnitImpact();
lv_castingPlayer = UnitGetOwner(lv_castingUnit);
lv_durationValue = (CatalogFieldValueGetAsFixed(c_gameCatalogBehavior, "MalGanisDarkConversionSwapDoT", "Duration", lv_castingPlayer) / CatalogFieldValueGetAsFixed(c_gameCatalogBehavior, "MalGanisDarkConversionSwapDoT", "Period", lv_castingPlayer));
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:2780
}
if (!((EventPlayerEffectUsedUnitImpact() == gv_artanis))) {
return false;
}
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:2295
}
if (!((EventPlayerEffectUsedUnitImpact() == gv_zeratul))) {
return false;
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2130
}
if (!((UnitGetOwner(EventPlayerEffectUsedUnitImpact()) == gv_pLAYER_01_USER))) {
return false;
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2134
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventPlayerEffectUsedUnitImpact(), EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)) == false))) {
return false;
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2144
}
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: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:2146
if ((UnitHasBehavior2(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected") == false)) {
UnitBehaviorAdd(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected", EventPlayerEffectUsedUnitLaunch(), 1);
gf_S2TrackUnitHitBySonar(EventPlayerEffectUsedUnitImpact());
}
else {
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:2179
}
if (!((EventPlayerEffectUsedUnitImpact() == gv_nova))) {
return false;
}
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2map — MapScript.galaxy:2780
}
if (!((EventPlayerEffectUsedUnitImpact() == gv_artanis))) {
return false;
}
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2map — MapScript.galaxy:2295
}
if (!((EventPlayerEffectUsedUnitImpact() == gv_zeratul))) {
return false;
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:2130
}
if (!((UnitGetOwner(EventPlayerEffectUsedUnitImpact()) == gv_pLAYER_01_USER))) {
return false;
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:2134
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventPlayerEffectUsedUnitImpact(), EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)) == false))) {
return false;
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:2144
}
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: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:2146
if ((UnitHasBehavior2(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected") == false)) {
UnitBehaviorAdd(EventPlayerEffectUsedUnitImpact(), "DetectorConeDetected", EventPlayerEffectUsedUnitLaunch(), 1);
gf_S2TrackUnitHitBySonar(EventPlayerEffectUsedUnitImpact());
}
else {
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:2179
}
if (!((EventPlayerEffectUsedUnitImpact() == gv_nova))) {
return false;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:12784
}
UnitGroupAdd(libCOMU_gv_cT_OrderCostImmuneUnits, EventPlayerEffectUsedUnitImpact());
Wait(0.0625, c_timeGame);
UnitGroupRemove(libCOMU_gv_cT_OrderCostImmuneUnits, EventPlayerEffectUsedUnitImpact());
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:12786
UnitGroupAdd(libCOMU_gv_cT_OrderCostImmuneUnits, EventPlayerEffectUsedUnitImpact());
Wait(0.0625, c_timeGame);
UnitGroupRemove(libCOMU_gv_cT_OrderCostImmuneUnits, EventPlayerEffectUsedUnitImpact());
return true;
}