# Create Effect On Unit (From Player)
Grammar — Execute effect on unit from player caster
Flags —Native
|Action
Runs an effect, targeting the specified unit. This effect will not have a caster unit.
# Arguments
int
— Playerstring
[ gamelink::Effect ] — Effectunit
— Target
Returns — void
native void PlayerCreateEffectUnit(
int inPlayer,
string inEffect,
unit inTarget,
);
# Related
Category: Environment / Effects
- [F] —
void
— Create Explosion At Point — ( libNtve_gf_CreateExplosionAtPoint ) - [F] —
void
— Create Effect At Point (From Player) — ( PlayerCreateEffectPoint ) - [F] —
void
— Create Effect On Unit (From Player) — ( PlayerCreateEffectUnit ) - [F] —
void
— Create Effect At Point (From Unit) — ( UnitCreateEffectPoint ) - [F] —
void
— Create Effect On Unit (From Unit) — ( UnitCreateEffectUnit ) - [F] —
void
— Damage Unit (From Unit) — ( UnitDamage ) - [F] —
bool
— Player Can Create Effect At Point — ( libNtve_gf_PlayerCanCreateEffectAtPoint ) - [F] —
bool
— Player Can Create Effect On Unit — ( libNtve_gf_PlayerCanCreateEffectOnUnit ) - [F] —
bool
— Unit Can Create Effect At Point — ( libNtve_gf_UnitCanCreateEffectAtPoint ) - [F] —
bool
— Unit Can Create Effect On Unit — ( libNtve_gf_UnitCanCreateEffectOnUnit ) - [F] —
void
— Destroy Effects — ( GameDestroyEffects ) - [F] —
void
— Effect Used — ( TriggerAddEventPlayerEffectUsed ) - [F] —
void
— Effect Used From Scope — ( TriggerAddEventPlayerEffectUsedFromScope ) - [F] —
string
[ gamelink::Effect ] — Triggering Effect Used — ( EventPlayerEffectUsed ) - [F] —
point
— Triggering Effect Point — ( EventPlayerEffectUsedPoint ) - [F] —
unit
— Triggering Effect Unit — ( EventPlayerEffectUsedUnit ) - [F] —
unit
— Triggering Effect Item — ( EventPlayerEffectUsedItem ) - [F] —
unit
— Triggering Effect Impact Unit — ( EventPlayerEffectUsedUnitImpact ) - [F] —
unit
— Triggering Effect Launch Unit — ( EventPlayerEffectUsedUnitLaunch ) - [F] —
int
— Triggering Effect Unit Owner — ( EventPlayerEffectUsedUnitOwner ) - [F] —
string
[ gamelink::Unit ] — Triggering Effect Unit Type — ( EventPlayerEffectUsedUnitType ) - [F] —
string
[ gamelink::Unit ] — Triggering Effect Item Type — ( EventPlayerEffectUsedItemType ) - [F] —
int
— Triggering Effect Amount (Integer) — ( EventPlayerEffectUsedAmountInt ) - [F] —
fixed
— Triggering Effect Amount (Real) — ( EventPlayerEffectUsedAmountFixed ) - [F] —
string
[ gamelink::Behavior ] — Triggering Effect Source Behavior — ( EventPlayerEffectUsedSourceBehavior ) - [F] —
string
[ gamelink::Weapon ] — Triggering Effect Weapon — ( EventPlayerEffectUsedWeapon ) - [F] —
string
[ gamelink::Abil ] — Triggering Effect Ability — ( EventPlayerEffectUsedAbil )
# Examples
# campaigns/liberty.sc2campaign
// L854
PlayerCreateEffectUnit(gv_p3_ENEMY_PROTOSS, "ChronoBoost", UnitGroupLoopCurrent())
// L7922
PlayerCreateEffectUnit(0, "LavaFireDamage", autoD60EF79C_var)
// L7922
PlayerCreateEffectUnit(0, "LavaFireDamage", autoD60EF79C_var)
// L854
PlayerCreateEffectUnit(gv_p3_ENEMY_PROTOSS, "ChronoBoost", UnitGroupLoopCurrent())
# mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmod
// L2894
PlayerCreateEffectUnit(libCore_gv_cOMPUTER_TeamChaos, "ApplyCannonballRevealed", lv_collectingUnit)
// L2897
PlayerCreateEffectUnit(libCore_gv_cOMPUTER_TeamOrder, "ApplyCannonballRevealed", lv_collectingUnit)
// L2994
PlayerCreateEffectUnit(lv_collectingPlayer, "DoubloonPickupSet", lv_collectingUnit)
// L2996
PlayerCreateEffectUnit(libCore_gv_cOMPUTER_TeamChaos, "ApplyCannonballRevealed", lv_collectingUnit)
// L2999
PlayerCreateEffectUnit(libCore_gv_cOMPUTER_TeamOrder, "ApplyCannonballRevealed", lv_collectingUnit)
# mods/heroesdata.stormmod
// L3101
PlayerCreateEffectUnit(lv_player, "RexxarApplyMishaFocusTargetBehavior", libGDHL_gv_heroRexxarMishaPursuitTarget[lv_player])
// L11288
PlayerCreateEffectUnit(lv_player, "KerriganSummonUltraliskRemoveUltraliskActiveBehavior", auto9FB90F8E_var)
# mods/heroesdata.stormmod
// L20750
PlayerCreateEffectUnit(UnitGetOwner(libGame_gf_UnitEntersSafeZonePuntRegionUnit()), "HallOfStormsKnockbackImpactSet", libGame_gf_UnitEntersSafeZonePuntRegionUnit())
# mods/heroesdata.stormmod
— StartingExperienceLib.galaxy
// L659
PlayerCreateEffectUnit(lv_itPlayer, "GodRayDestroyPersistent", libGame_gv_players[lv_itPlayer].lv_heroUnit)
# mods/heromods/chogall.stormmod
// L2132
PlayerCreateEffectUnit(lv_killingPlayer, "GallDeathSwitch", libGDHL_gv_chogallPairs[lv_choGallPairsTeam].lv_gallUnit)
# mods/novastoryassets.sc2mod
// L404
PlayerCreateEffectUnit(1, "PickupHealthFullVulturePathDummySet", gv_artanis)
// L404
PlayerCreateEffectUnit(1, "PickupHealthFullVulturePathDummySet", gv_artanis)
# mods/starcoop/starcoop.sc2mod
// L13553
PlayerCreateEffectUnit(lv_abathurCommander, "AbathurLocustTimedLife", UnitLastCreated())
// L15669
PlayerCreateEffectUnit(lv_abathurAllyOfKillingPlayer, "AbathurLocustTimedLife", UnitLastCreated())
# mods/starcoop/starcoop.sc2mod
// L2958
PlayerCreateEffectUnit(lp_giftPlayer, "MutatorCalldownMULECreateUnit", lv_mineralPatch)
// L12988
PlayerCreateEffectUnit(lv_hungryPlayer, "MutatorHungerDamage", lv_hungerTarget)
// L12993
PlayerCreateEffectUnit(lv_hungryPlayer, "MutatorHungerDamage", lv_hungerTarget)