# Actor Scope From Unit

Grammar — Actor scope for unit
FlagsNative | Function

Returns a unit’s actor scope.

# Arguments

  • unit — Unit

Returns — actorscope

native actorscope ActorScopeFromUnit(unit u);

Category: Actor / Utility

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L5217
ActorScopeFromUnit(gv_boss)
// L4292
ActorScopeFromUnit(UnitGroupLoopCurrent())
// L6712
ActorScopeFromUnit(UnitGroupLoopCurrent())
// L7117
ActorScopeFromUnit(UnitGroupLoopCurrent())
// L4833
ActorScopeFromUnit(UnitFromId(154))
// L4834
ActorScopeFromUnit(UnitFromId(455))
// L4844
ActorScopeFromUnit(UnitFromId(154))
// L4845
ActorScopeFromUnit(UnitFromId(455))
// L5217
ActorScopeFromUnit(gv_boss)
// L4292
ActorScopeFromUnit(UnitGroupLoopCurrent())
// L6712
ActorScopeFromUnit(UnitGroupLoopCurrent())
// L7117
ActorScopeFromUnit(UnitGroupLoopCurrent())
// L4833
ActorScopeFromUnit(UnitFromId(154))
// L4834
ActorScopeFromUnit(UnitFromId(455))
// L4844
ActorScopeFromUnit(UnitFromId(154))
// L4845
ActorScopeFromUnit(UnitFromId(455))
// L2898
ActorScopeFromUnit(gv_psiDestroyer)
// L2902
ActorScopeFromUnit(gv_psiDestroyer)
// L2898
ActorScopeFromUnit(gv_psiDestroyer)
// L2902
ActorScopeFromUnit(gv_psiDestroyer)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L8939
ActorScopeFromUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitA)
// L8964
ActorScopeFromUnit(libSwaC_gv_zS_ArmyCustomEvolutionUnitB)

# campaigns/void.sc2campaign

MapScript.galaxy

// L4792
ActorScopeFromUnit(UnitFromId(1326))
// L6568
ActorScopeFromUnit(UnitFromId(423))
// L4792
ActorScopeFromUnit(UnitFromId(1326))
// L6568
ActorScopeFromUnit(UnitFromId(423))

# mods/core.sc2mod

NativeLib.galaxy

// L285
ActorScopeFromUnit(lp_unit)
// L302
ActorScopeFromUnit(lp_unit)
// L360
ActorScopeFromUnit(lp_unit)
// L1227
ActorScopeFromUnit(lp_lookAtTargetUnit)
// L1240
ActorScopeFromUnit(lp_unit)
// L161
ActorScopeFromUnit(lp_unit)
// L178
ActorScopeFromUnit(lp_unit)
// L236
ActorScopeFromUnit(lp_unit)
// L1123
ActorScopeFromUnit(lp_lookAtTargetUnit)
// L1136
ActorScopeFromUnit(lp_unit)

# mods/heroes.stormmod

MapScript.galaxy

// L1127
ActorScopeFromUnit(lv_itBuilding)
// L1127
ActorScopeFromUnit(lv_itBuilding)

# mods/heroesdata.stormmod

GameLib.galaxy

// L10628
ActorScopeFromUnit(libGame_gv_players[lp_player].lv_heroUnit)
// L17437
ActorScopeFromUnit(lv_deadUnit)
// L18226
ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitCaster))
// L18728
ActorScopeFromUnit(EventUnit())

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L6230
ActorScopeFromUnit(UnitLastCreated())
// L7237
ActorScopeFromUnit(libMapM_gv_mMGardensDragonDragonTowers[lv_obelisk].lv_shrineUnit)
// L7280
ActorScopeFromUnit(libMapM_gv_mMGardensDragonDragonTowers[lv_dragontower].lv_shrineUnit)

# mods/heroesdata.stormmod

StartingExperienceLib.galaxy

// L2258
ActorScopeFromUnit(lv_itHero)
// L2285
ActorScopeFromUnit(lv_itHero)

# mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmod

LibBBAY.galaxy

// L403
ActorScopeFromUnit(libBBAY_gv_mMBBCannonballsGhostShipBeacon)
// L1427
ActorScopeFromUnit(libBBAY_gv_mMBBCannonballsGhostShip)
// L1864
ActorScopeFromUnit(libBBAY_gv_mMBBCannonballsTreasureChestChests[lv_iter])

# mods/heroesmapmods/battlegroundmapmods/gardenofterror.stormmod

LibGRDN.galaxy

// L195
ActorScopeFromUnit(UnitLastCreated())

# mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod

LibMHtM.galaxy

// L1405
ActorScopeFromUnit(lv_itGate)

# mods/heroesmapmods/battlegroundmapmods/volskayasound.stormmod

LibVLSS.galaxy

// L121
ActorScopeFromUnit(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core)
// L123
ActorScopeFromUnit(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core)
// L127
ActorScopeFromUnit(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core)
// L130
ActorScopeFromUnit(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core)

# mods/heromods/chromie.stormmod

LibHCHR.galaxy

// L249
ActorScopeFromUnit(EventPlayerEffectUsedUnitLaunch())
// L250
ActorScopeFromUnit(EventPlayerEffectUsedUnitLaunch())

# mods/heromods/dva.stormmod

LibHDVA.galaxy

// L237
ActorScopeFromUnit(libGame_gv_players[lp_player].lv_heroUnit)

# mods/heromods/lucio.stormmod

LibHLUC.galaxy

// L585
ActorScopeFromUnit(lv_lucioUnit)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L14221
ActorScopeFromUnit(lv_u)
// L14225
ActorScopeFromUnit(EventUnit())
// L15329
ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget))
// L15548
ActorScopeFromUnit(EventUnit())
// L15553
ActorScopeFromUnit(EventUnit())
// L15556
ActorScopeFromUnit(EventUnit())
// L15559
ActorScopeFromUnit(EventUnit())
// L15852
ActorScopeFromUnit(EventUnit())
// L16045
ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget))
// L16048
ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget))

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L952
ActorScopeFromUnit(lp_damagedUnit)
// L962
ActorScopeFromUnit(lp_damagedUnit)
// L12399
ActorScopeFromUnit(UnitLastCreated())

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L9338
ActorScopeFromUnit(EventUnit())
// L9341
ActorScopeFromUnit(lv_squadhero)

# mods/warcoop/progression/equipments.sc2mod

LibPEqu.galaxy

// L69
ActorScopeFromUnit(lv_attacker)

# mods/warcoop/warclassic.sc2mod

WarClassic.galaxy

// L282
ActorScopeFromUnit(lp_unit)