# Triggering Effect Unit Type
Flags —
Native
|Function
# Arguments
int
<preset::EffectUnit> — Location
Returns — string
<gamelink::Unit>
native string EventPlayerEffectUsedUnitType(
int inLocation,
);
# Supported triggers
- Effect Used — TriggerAddEventPlayerEffectUsed
# 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/heroesmapmods/battlegroundmapmods/overwatchdata.stormmod — base.stormdata/LibOVER.galaxy:449
// Conditions
if (testConds) {
if (!((EventPlayerEffectUsedUnitType(c_effectUnitTarget) == "HealingPulsePickup"))) {
return false;
}
mods/heroesmapmods/battlegroundmapmods/overwatchdata.stormmod — base.stormdata/LibOVER.galaxy:546
// Conditions
if (testConds) {
if (!((EventPlayerEffectUsedUnitType(c_effectUnitTarget) == "DragonSpiritsPickup"))) {
return false;
}
mods/heroesmapmods/battlegroundmapmods/overwatchdata.stormmod — base.stormdata/LibOVER.galaxy:657
// Conditions
if (testConds) {
if (!((EventPlayerEffectUsedUnitType(c_effectUnitTarget) == "TurretPickup"))) {
return false;
}
mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod — base.stormdata/LibMSC2.galaxy:1797
// Conditions
if (testConds) {
if (!((EventPlayerEffectUsedUnitType(c_effectUnitTarget) == "WarheadSingle"))) {
return false;
}
mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod — base.stormdata/LibMSC2.galaxy:2223
// Conditions
if (testConds) {
if (!((EventPlayerEffectUsedUnitType(c_effectUnitTarget) == "WarheadDropped"))) {
return false;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:16038
// Automatic Variable Declarations
// Variable Initialization
lv_victimType = EventPlayerEffectUsedUnitType(c_effectUnitTarget);
lv_missile = EventPlayerEffectUsedUnit(c_effectUnitSource);
mods/starcoop/starcoop.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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));