# Send Actor Message To Scope

Grammar — Send actor message message to all actors in actor scope actorScope
FlagsNative | Action

Sends an actor message to all actors in the specified scope. An actor scope is a container for a set of actors. An actor message will perform an action and/or trigger an event on the actor it is sent to.

# Arguments

  • actorscope — Actor Scope
  • string [ actormsg ] — Message

Returns — void

native void ActorScopeSend(actorscope as, string msg);

Category: Actor / Send Actor Messages

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L5217
ActorScopeSend(ActorScopeFromUnit(gv_boss), "AnimPlay Birth Birth 0 0.000000")
// L2234
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L2261
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L2301
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L2351
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L5615
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L5217
ActorScopeSend(ActorScopeFromUnit(gv_boss), "AnimPlay Birth Birth 0 0.000000")
// L2234
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L2261
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L2301
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L2351
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L5615
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L2898
ActorScopeSend(ActorScopeFromUnit(gv_psiDestroyer), "Signal StopSound")
// L2898
ActorScopeSend(ActorScopeFromUnit(gv_psiDestroyer), "Signal StopSound")
// L4792
ActorScopeSend(ActorScopeFromUnit(UnitFromId(1326)), "AnimPlay Birth Birth")
// L6568
ActorScopeSend(ActorScopeFromUnit(UnitFromId(423)), "AnimPlay Birth Birth")
// L3793
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L3833
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L4792
ActorScopeSend(ActorScopeFromUnit(UnitFromId(1326)), "AnimPlay Birth Birth")
// L6568
ActorScopeSend(ActorScopeFromUnit(UnitFromId(423)), "AnimPlay Birth Birth")
// L3793
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")
// L3833
ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound")

# mods/heroesdata.stormmod

GameLib.galaxy

// L10628
ActorScopeSend(ActorScopeFromUnit(libGame_gv_players[lp_player].lv_heroUnit), "StatusIncrement PreventDestroyOnDeath")
// L18240
ActorScopeSend(lv_scope, "Signal LootSprayKill")

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L3707
ActorScopeSend(ActorScopeFromActor(libMapM_gv_mMGardensDragonSoundRegionActor), "Signal StopSound")
// L7521
ActorScopeSend(ActorScopeFromActor(libMapM_gv_mMGardensDragonSoundRegionActor), "Signal StopSound")

# mods/heroesdata.stormmod

StartingExperienceLib.galaxy

// L2258
ActorScopeSend(ActorScopeFromUnit(lv_itHero), (("SetFilterPlayers " + IntToString(lv_itPlayerInIntro))))
// L2285
ActorScopeSend(ActorScopeFromUnit(lv_itHero), (("SetFilterPlayers " + IntToString(lv_itPlayerInIntro) + " Clear")))

# mods/heromods/dva.stormmod

LibHDVA.galaxy

// L237
ActorScopeSend(ActorScopeFromUnit(libGame_gv_players[lp_player].lv_heroUnit), "StatusIncrement PreventDestroyOnDeath")

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L2725
ActorScopeSend(gv_cameraSoundActorScope, "Destroy")
// L2725
ActorScopeSend(gv_cameraSoundActorScope, "Destroy")

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L14225
ActorScopeSend(ActorScopeFromUnit(EventUnit()), "Signal CandyCountHide")
// L15329
ActorScopeSend(ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget)), "Signal BiomassAnimGroupC")
// L15548
ActorScopeSend(ActorScopeFromUnit(EventUnit()), "Create BiomassBuffGlaze")
// L15553
ActorScopeSend(ActorScopeFromUnit(EventUnit()), "Signal BiomassAnimGroupC")
// L15556
ActorScopeSend(ActorScopeFromUnit(EventUnit()), "Signal BiomassAnimGroupB")
// L15559
ActorScopeSend(ActorScopeFromUnit(EventUnit()), "Signal BiomassAnimGroupA")
// L15852
ActorScopeSend(ActorScopeFromUnit(EventUnit()), libNtve_gf_Signal(IntToString(lv_sacrificCount)))
// L16045
ActorScopeSend(ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget)), "Signal PrestigeMechAnimGroupC")
// L16048
ActorScopeSend(ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget)), "Signal PrestigeMechAnimGroupB")
// L16051
ActorScopeSend(ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget)), "Signal PrestigeMechAnimGroupA")

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L10416
ActorScopeSend(ActorScopeFromActor(libCOMU_gv_mutatorLaserDrillSoundRegionActor), "Signal StopSound")
// L10456
ActorScopeSend(ActorScopeFromActor(libCOMU_gv_mutatorLaserDrillSoundRegionActor), "Signal StopSound")