# Duration Remaining Of Behavior On Unit

Grammar — Get behavior remaining duration on unit unit
FlagsNative | Function

Gets a behavior remaining duration on a unit.

# Arguments

  • unit — Unit
  • string [ gamelink::Behavior ] — Behavior

Returns — fixed

native fixed UnitBehaviorDuration(
	unit inUnit,
	string inBehavior,
);

Category: Behavior / Basic

# Examples

# mods/heroes.stormmod

MapScript.galaxy

// L1034
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown")
// L1087
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown")
// L1034
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown")
// L1087
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown")

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// L3754
UnitBehaviorDuration(UnitLastCreated(), "JungleMercDefenderBirthInvulnerability")
// L10166
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff")
// L10167
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff")
// L10170
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "UtherEternalVanguardRezDelay")
// L10171
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff")
// L10174
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff")
// L10175
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff")

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod

LibPVEB.galaxy

// L2471
UnitBehaviorDuration(lv_itUnit, "PVEResurrectCastTracking")

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEM.galaxy

// L2028
UnitBehaviorDuration(lv_itUnit, "DeadHeroResurrectCastTrackingBehavior")

# mods/heroesbrawlmods/brawlmapmods/onelane/onelanemapshared.stormmod

LibOLMS.galaxy

// L50
UnitBehaviorDuration(lp_unit, "GenerateRegenGlobe")
// L53
UnitBehaviorDuration(lp_unit, "GenerateRegenGlobe")

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L2377
UnitBehaviorDuration(lp_unit, lp_behavior)
// L2377
UnitBehaviorDuration(lp_unit, lv_behavior)
// L5765
UnitBehaviorDuration(auto7E23C28A_var, "AbathurEvolveMonstrosity")
// L5766
UnitBehaviorDuration(auto7E23C28A_var, "AbathurEvolveMonstrosity")
// L6243
UnitBehaviorDuration(lv_unit, "ArtanisSpearofAdunPurifierBeamTargeting")
// L7380
UnitBehaviorDuration(lv_unit, "BarbarianWrathoftheBerserkerBase")
// L7673
UnitBehaviorDuration(lv_target, "ButchersBrand")
// L9429
UnitBehaviorDuration(lv_target, lv_triggeringPoison)
// L9430
UnitBehaviorDuration(lv_target, lv_triggeringPoison)
// L9434
UnitBehaviorDuration(lv_target, lv_triggeringPoison)

# mods/heroesdata.stormmod

GameLib.galaxy

// L1470
UnitBehaviorDuration(lp_unit, lp_cCBehavior)
// L14397
UnitBehaviorDuration(lv_unit, lv_behavior)
// L14516
UnitBehaviorDuration(EventUnit(), EventUnitBehavior())
// L17435
UnitBehaviorDuration(lv_deadUnit, "RedemptionCooldown")
// L18416
UnitBehaviorDuration(auto82B7B41C_var, "HealingFountainCooldown")
// L18493
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown")

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L1248
UnitBehaviorDuration(lv_newUnit, "JungleMercDefenderBirthInvulnerability")
// L7660
UnitBehaviorDuration(libMapM_gv_mMGardensDragonUnit, "VehicleDragonTimedLife")

# mods/heroesdata.stormmod

UILib.galaxy

// L4209
UnitBehaviorDuration(libGame_gv_players[lv_player].lv_unitStatusBarsMonitorUnit_StunDeath, lp_newBehavior)
// L4209
UnitBehaviorDuration(libGame_gv_players[lv_player].lv_unitStatusBarsMonitorUnit_StunDeath, libUIUI_gv_heroConsoleUnitStatusBars_StunDeathBarCurrentBehaviorForPlayer[lv_player])
// L4242
UnitBehaviorDuration(libGame_gv_players[lp_player].lv_unitStatusBarsMonitorUnit_StunDeath, libUIUI_gv_heroConsoleUnitStatusBars_StunDeathBarCurrentBehaviorForPlayer[lp_player])
// L4255
UnitBehaviorDuration(libGame_gv_players[lp_player].lv_unitStatusBarsMonitorUnit_Behavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player])
// L4260
UnitBehaviorDuration(libGame_gv_players[lp_player].lv_unitStatusBarsMonitorUnit_Behavior, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player])
// L4276
UnitBehaviorDuration(lv_heroUnit, lp_behavior)
// L4276
UnitBehaviorDuration(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayer[lp_player])
// L4298
UnitBehaviorDuration(lv_heroUnit, lp_behavior)
// L4298
UnitBehaviorDuration(lv_heroUnit, libUIUI_gv_heroConsoleUnitStatusBars_BehaviorChannelBarCurrentBehaviorForPlayerRight[lp_player])
// L4320
UnitBehaviorDuration(lv_heroUnit, lp_behavior)

# mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod

LibSCHO.galaxy

// L2547
UnitBehaviorDuration(lp_unit, "GenerateRegenGlobe")
// L2550
UnitBehaviorDuration(lp_unit, "GenerateRegenGlobe")

# mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod

LibMTOD.galaxy

// L655
UnitBehaviorDuration(libGame_gv_players[lv_itPlayer].lv_heroUnit, "HealingFountainCooldown")
// L2413
UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior")
// L2414
UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior")
// L2515
UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior")
// L2516
UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior")
// L2573
UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior")
// L2574
UnitBehaviorDuration(EventUnit(), "StructureOwnershipChangeRepairBehavior")

# mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod

LibVLSK.galaxy

// L1195
UnitBehaviorDuration(lp_robotUnit, "VehicleDragonTimedLife")
// L1649
UnitBehaviorDuration(EventUnit(), "VehicleDragonTimedLife")

# mods/heromods/alarak.stormmod

LibHALA.galaxy

// L593
UnitBehaviorDuration(lv_oldTarget, "AlarakSadismRiteofRakShirTalentDebuff")

# mods/heromods/chogall.stormmod

LibHCHO.galaxy

// L203
UnitBehaviorDuration(lp_OrbUnit, "ChoRuneBombTalentRollbackTimedLife")
// L204
UnitBehaviorDuration(lp_OrbUnit, "ChoRuneBombTalentRollbackTimedLife")
// L212
UnitBehaviorDuration(lv_runeBomb, "ChoRuneBombTalentRollbackTimedLife")
// L213
UnitBehaviorDuration(lv_runeBomb, "ChoRuneBombTalentRollbackTimedLife")
// L2043
UnitBehaviorDuration(lv_unit, lv_behavior)

# mods/heromods/dva.stormmod

LibHDVA.galaxy

// L373
UnitBehaviorDuration(lv_dVaMechUnit, "DVaMechCallMechDisabler")

# mods/heromods/genji.stormmod

LibHGen.galaxy

// L555
UnitBehaviorDuration(lv_genjiUnit, "GenjiDragonbladeActive")

# mods/heromods/guldan.stormmod

LibHGUL.galaxy

// L448
UnitBehaviorDuration(lv_deadUnit, "Dead")

# mods/heromods/imperius.stormmod

LibHIMP.galaxy

// L388
UnitBehaviorDuration(lv_wrathOfTheAngirisTargetUnit, "ImperiusWrathOfTheAngirisTargetRemovedStasis")

# mods/heromods/lucio.stormmod

LibHLUC.galaxy

// L444
UnitBehaviorDuration(lv_lucioUnit, "LucioReverseAmp")

# mods/heromods/medivh.stormmod

LibHMDV.galaxy

// L759
UnitBehaviorDuration(EventUnit(), "MedivhForceOfWill")

# mods/heromods/probius.stormmod

LibHPRO.galaxy

// L215
UnitBehaviorDuration(lv_probius, "ProbiusPylonOverchargeDummyUIBehavior")

# mods/heromods/samuro.stormmod

LibHSAM.galaxy

// L1317
UnitBehaviorDuration(lv_itUnit, "SamuroMirrorImageTimedLife")

# mods/heromods/zarya.stormmod

LibHZAR.galaxy

// L495
UnitBehaviorDuration(UnitBehaviorEffectUnit(lv_stunnedUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0), "ZaryaGravitonSurgeCasterDuration")
// L538
UnitBehaviorDuration(UnitBehaviorEffectUnit(lv_stunnedUnit, "ZaryaGravitonSurgePull", c_effectUnitCaster, 0), "ZaryaGravitonSurgeCasterDuration")

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L5084
UnitBehaviorDuration(autoF73BCC8E_var, "HHBomberDockCooldown")
// L5085
UnitBehaviorDuration(autoF73BCC8E_var, "HHBomberDockCooldown")
// L17239
UnitBehaviorDuration(libCOMI_gv_cM_HeroReviver[EventPlayer()], "DehakaNormalReviveTimer")
// L17293
UnitBehaviorDuration(libCOMI_gv_cM_HeroReviver[EventPlayer()], "DehakaNormalReviveTimer")
// L30229
UnitBehaviorDuration(libCOMI_gv_cM_HeroReviver[lv_itPlayer], "NovaReviveTimer")