# Unit Behavior Effect Unit

Grammar — Get Effect location|Unit for behavior on unit
FlagsNative | Function

# Arguments

  • unit — Unit
  • string [ gamelink::Behavior ] — Behavior
  • int [ preset::EffectUnit ] — Location
  • int — Stack Index

Returns — unit

native unit UnitBehaviorEffectUnit(
	unit inUnit,
	string inBehavior,
	int inLocation,
	int inIndex,
);

Category: Behavior / Basic

# Examples

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L6245
UnitBehaviorEffectUnit(lv_unit, "ArtanisSpearofAdunPurifierBeamTargeting", c_effectUnitSource, 0)
// L6704
UnitBehaviorEffectUnit(lv_deadHero, "AnubarakBeetleSpitDeathResponseBehavior", c_effectUnitCaster, 0)
// L7722
UnitBehaviorEffectUnit(lv_unit, "RuthlessOnslaughtTarget", c_effectUnitCaster, 0)
// L9809
UnitBehaviorEffectUnit(lv_killTarget, "GreymaneGoForTheThroatDeathResponse", c_effectUnitCaster, 0)
// L11507
UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0)
// L16438
UnitBehaviorEffectUnit(lv_unit, "MedicSafeguardBuff", c_effectUnitCaster, 0)
// L16869
UnitBehaviorEffectUnit(lv_killedUnit, "MuradinHaymakerGrandSlamTalentDeathMarker", c_effectUnitCaster, 0)
// L16921
UnitBehaviorEffectUnit(lv_killedUnit, "MuradinItsHammerTimeKillBonusBehavior", c_effectUnitCaster, lv_i)
// L17754
UnitBehaviorEffectUnit(lv_target, "NecromancerSpectralScytheMasteryMortalWoundDebuff", c_effectUnitCaster, 0)
// L17758
UnitBehaviorEffectUnit(lv_target, "NecromancerSpectralScytheMasteryMortalWoundDebuff", c_effectUnitCaster, 0)

# mods/heroesdata.stormmod

GameLib.galaxy

// L14428
UnitBehaviorEffectUnit(lv_tauntedUnit, lv_tauntBehavior, c_effectUnitCaster, 0)
// L15333
UnitBehaviorEffectUnit(lv_shieldedUnit, EventUnitBehavior(), c_effectUnitCaster, 0)

# mods/heroesdata.stormmod

UILib.galaxy

// L11677
UnitBehaviorEffectUnit(EventUnit(), lv_shieldBehavior, c_effectUnitTarget, 0)
// L11681
UnitBehaviorEffectUnit(EventUnit(), lv_shieldBehavior, c_effectUnitTarget, 0)
// L11695
UnitBehaviorEffectUnit(EventUnit(), lv_shieldBehavior, c_effectUnitTarget, 0)
// L11697
UnitBehaviorEffectUnit(EventUnit(), lv_shieldBehavior, c_effectUnitCaster, 0)

# mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod

LibMHtM.galaxy

// L1805
UnitBehaviorEffectUnit(lv_heroUnit, "AbathurSymbioteHostBehavior", c_effectUnitCaster, 0)

# mods/heromods/alarak.stormmod

LibHALA.galaxy

// L528
UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0)
// L592
UnitBehaviorEffectUnit(lv_oldTarget, "AlarakSadismRiteofRakShirTalentDebuff", c_effectUnitSource, 0)
// L654
UnitBehaviorEffectUnit(lv_deadUnit, "AlarakSadismRiteofRakShirTalentDebuff", c_effectUnitCaster, lv_iter)

# mods/heromods/auriel.stormmod

LibHAUR.galaxy

// L633
UnitBehaviorEffectUnit(lv_proxy, "AurielBestowHopeProxyBehavior", c_effectUnitCaster, lv_bestowHopeStackIteration)

# mods/heromods/chogall.stormmod

LibHCHO.galaxy

// L2332
UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0)
// L2421
UnitBehaviorEffectUnit(libGDHL_gv_chogallPairs[lv_choGallPairsTeam].lv_choUnit, EventUnitBehavior(), c_effectUnitCaster, 0)
// L2519
UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0)

# mods/heromods/dva.stormmod

LibHDVA.galaxy

// L371
UnitBehaviorEffectUnit(lv_dVaPilotUnit, "DVaPilotDisableCallMech", c_effectUnitCaster, 0)
// L558
UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitTarget, 0)
// L568
UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitTarget, 0)
// L569
UnitBehaviorEffectUnit(EventUnit(), EventUnitBehavior(), c_effectUnitCaster, 0)

# mods/heromods/hanzo.stormmod

LibHHAN.galaxy

// L305
UnitBehaviorEffectUnit(lv_trackedUnit, "HanzoSonicArrowFollowTarget", c_effectUnitSource, 0)
// L680
UnitBehaviorEffectUnit(lv_heroUnit, "HanzoTargetPracticeOwnershipDummy", c_effectUnitCaster, 0)

# mods/heromods/imperius.stormmod

LibHIMP.galaxy

// L195
UnitBehaviorEffectUnit(lv_targetUnit, "ImperiusCelestialChargeChannelStunDebuff", c_effectUnitCaster, 0)
// L376
UnitBehaviorEffectUnit(lv_wrathOfTheAngirisTargetUnit, "ImperiusWrathOfTheAngirisTargetRemovedStasis", c_effectUnitCaster, 0)

# mods/heromods/kelthuzad.stormmod

LibHKEL.galaxy

// L198
UnitBehaviorEffectUnit(lv_targetUnit, "KelThuzadChainsHost", c_effectUnitCaster, 0)
// L199
UnitBehaviorEffectUnit(lv_targetUnit, lv_chainBehavior, c_effectUnitCaster, 0)

# mods/heromods/medivh.stormmod

LibHMDV.galaxy

// L694
UnitBehaviorEffectUnit(lv_shieldedUnit, EventUnitBehavior(), c_effectUnitCaster, 0)

# mods/heromods/samuro.stormmod

LibHSAM.galaxy

// L1526
UnitBehaviorEffectUnit(EventUnit(), "SamuroCriticalStrikeDummyBehavior", c_effectUnitCaster, 0)
// L1527
UnitBehaviorEffectUnit(EventUnit(), "SamuroCriticalStrikeDummyBehavior", c_effectUnitCaster, 0)
// L1546
UnitBehaviorEffectUnit(EventUnit(), "SamuroCriticalStrikeDummyBehavior", c_effectUnitTarget, 0)

# mods/heromods/stukov.stormmod

LibHSTU.galaxy

// L95
UnitBehaviorEffectUnit(lv_healingPathogenUnit, "StukovHealingPathogenHealerBehavior", c_effectUnitCaster, 0)

# mods/heromods/zarya.stormmod

LibHZAR.galaxy

// L384
UnitBehaviorEffectUnit(lv_shieldedUnit, EventUnitBehavior(), c_effectUnitCaster, 0)
// L388
UnitBehaviorEffectUnit(lv_shieldedUnit, EventUnitBehavior(), c_effectUnitCaster, 0)
// L494
UnitBehaviorEffectUnit(lv_stunnedUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0)
// L495
UnitBehaviorEffectUnit(lv_stunnedUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0)
// L537
UnitBehaviorEffectUnit(lv_stunnedUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0)
// L538
UnitBehaviorEffectUnit(lv_stunnedUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0)
// L568
UnitBehaviorEffectUnit(lv_localTriggeringUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0)
// L698
UnitBehaviorEffectUnit(lv_localShieldedUnit, EventUnitBehavior(), c_effectUnitCaster, 0)
// L817
UnitBehaviorEffectUnit(EventUnitDamageSourceUnit(), "ZaryaShieldAlly", c_effectUnitCaster, 0)
// L836
UnitBehaviorEffectUnit(lv_allyUnit, "ZaryaShieldAlly", c_effectUnitCaster, 0)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L2365
UnitBehaviorEffectUnit(gv_artanis, "DetectorConeDetected", c_effectUnitCaster, 0)
// L2461
UnitBehaviorEffectUnit(gv_artanis, "DetectorConeDetected", c_effectUnitCaster, 0)
// L2545
UnitBehaviorEffectUnit(gv_artanis, "DOMEMPDecloak", c_effectUnitCaster, 0)
// L5892
UnitBehaviorEffectUnit(EventUnit(), "DetectorConeDetected", c_effectUnitCaster, 0)
// L2272
UnitBehaviorEffectUnit(gv_zeratul, "DetectorConeDetected", c_effectUnitCaster, 0)
// L2367
UnitBehaviorEffectUnit(gv_zeratul, "DetectorConeDetected", c_effectUnitCaster, 0)
// L2450
UnitBehaviorEffectUnit(gv_zeratul, "DOMEMPDecloak", c_effectUnitCaster, 0)
// L2561
UnitBehaviorEffectUnit(gv_nova, "DetectorConeDetected", c_effectUnitCaster, 0)
// L2365
UnitBehaviorEffectUnit(gv_artanis, "DetectorConeDetected", c_effectUnitCaster, 0)
// L2461
UnitBehaviorEffectUnit(gv_artanis, "DetectorConeDetected", c_effectUnitCaster, 0)
// L2545
UnitBehaviorEffectUnit(gv_artanis, "DOMEMPDecloak", c_effectUnitCaster, 0)
// L5892
UnitBehaviorEffectUnit(EventUnit(), "DetectorConeDetected", c_effectUnitCaster, 0)
// L2272
UnitBehaviorEffectUnit(gv_zeratul, "DetectorConeDetected", c_effectUnitCaster, 0)
// L2367
UnitBehaviorEffectUnit(gv_zeratul, "DetectorConeDetected", c_effectUnitCaster, 0)
// L2450
UnitBehaviorEffectUnit(gv_zeratul, "DOMEMPDecloak", c_effectUnitCaster, 0)
// L2561
UnitBehaviorEffectUnit(gv_nova, "DetectorConeDetected", c_effectUnitCaster, 0)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L13942
UnitBehaviorEffectUnit(lv_unit, lv_behavior, c_effectUnitCaster, 0)
// L14388
UnitBehaviorEffectUnit(lv_supplicant, libCOMI_gv_supplicantWarpTrainCreatorFinderBehaviorLink, c_effectUnitCaster, 0)
// L14420
UnitBehaviorEffectUnit(lv_creator, libCOMI_gv_supplicantWarpTrainCreatorWarpGateFinderBehaviorLink, c_effectUnitCaster, 0)
// L22859
UnitBehaviorEffectUnit(libNtve_gf_KillingUnit(), "AutoTurret_BlackOpsTimedLife", c_effectUnitCaster, 0)
// L22860
UnitBehaviorEffectUnit(libNtve_gf_KillingUnit(), "AutoTurret_BlackOpsTimedLife", c_effectUnitCaster, 0)
// L27198
UnitBehaviorEffectUnit(lv_u, "ZeratulPurificationNovaCasterFinder", c_effectUnitCaster, 0)
// L27253
UnitBehaviorEffectUnit(lv_u, "ZeratulPurificationNovaTargettedTarget", c_effectUnitCaster, 0)
// L28267
UnitBehaviorEffectUnit(EventUnit(), "ZeratulPhotonCannonProjectionCaster", c_effectUnitCaster, 0)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L1691
UnitBehaviorEffectUnit(lp_killer, UnitBehaviorGet(lp_killer, lv_behaviorIndex), lv_creditorEffectUnit, 0)