# 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.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:5217

    libNtve_gf_CreateUnitsAtPoint2(1, "SS_Leviathan", 0, gv_p0_NEUTRAL, lv_spawnLoc);
    gv_boss = UnitLastCreated();
    ActorScopeSend(ActorScopeFromUnit(gv_boss), "AnimPlay Birth Birth 0 0.000000");
    if ((gv_repeatTimes > 0)) {
        UnitBehaviorAdd(gv_boss, "SS_StrongerEnemyBuff", gv_boss, gv_repeatTimes);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2283


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2310


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2350


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2400


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:5664

    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(UnitGroupUnit(UnitGroup("XelNagaTemple", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), 1)), c_animNameDefault, "Stand D End", c_animFlagPlayForever, c_animTimeDefault);
    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:5217

    libNtve_gf_CreateUnitsAtPoint2(1, "SS_Leviathan", 0, gv_p0_NEUTRAL, lv_spawnLoc);
    gv_boss = UnitLastCreated();
    ActorScopeSend(ActorScopeFromUnit(gv_boss), "AnimPlay Birth Birth 0 0.000000");
    if ((gv_repeatTimes > 0)) {
        UnitBehaviorAdd(gv_boss, "SS_StrongerEnemyBuff", gv_boss, gv_repeatTimes);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:2283


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:2310


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:2350


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:2400


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:5664

    libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(UnitGroupUnit(UnitGroup("XelNagaTemple", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), 1)), c_animNameDefault, "Stand D End", c_animFlagPlayForever, c_animTimeDefault);
    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:2898

    }

    ActorScopeSend(ActorScopeFromUnit(gv_psiDestroyer), "Signal StopSound");
    gv_psiFieldSoundRegion = RegionEmpty();
    Wait(0.0625, c_timeGame);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:2898

    }

    ActorScopeSend(ActorScopeFromUnit(gv_psiDestroyer), "Signal StopSound");
    gv_psiFieldSoundRegion = RegionEmpty();
    Wait(0.0625, c_timeGame);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:4792

    TriggerEnable(gt_S2HallBeaconReached, true);
    libNtve_gf_ShowHideUnit(UnitFromId(1326), true);
    ActorScopeSend(ActorScopeFromUnit(UnitFromId(1326)), "AnimPlay Birth Birth");
    TriggerExecute(gt_S2HallDefenseFinishedQ, true, false);
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:6568

    Wait(0.5, c_timeGame);
    libNtve_gf_ShowHideUnit(UnitFromId(423), true);
    ActorScopeSend(ActorScopeFromUnit(UnitFromId(423)), "AnimPlay Birth Birth");
    TriggerEnable(gt_S3HallReached, true);
    TriggerQueueEnter();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:3792


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:3832


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2mapMapScript.galaxy:4792

    TriggerEnable(gt_S2HallBeaconReached, true);
    libNtve_gf_ShowHideUnit(UnitFromId(1326), true);
    ActorScopeSend(ActorScopeFromUnit(UnitFromId(1326)), "AnimPlay Birth Birth");
    TriggerExecute(gt_S2HallDefenseFinishedQ, true, false);
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2mapMapScript.galaxy:6568

    Wait(0.5, c_timeGame);
    libNtve_gf_ShowHideUnit(UnitFromId(423), true);
    ActorScopeSend(ActorScopeFromUnit(UnitFromId(423)), "AnimPlay Birth Birth");
    TriggerEnable(gt_S3HallReached, true);
    TriggerQueueEnter();

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2mapMapScript.galaxy:3792


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2mapMapScript.galaxy:3832


    if ((gv_soundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(gv_soundRegionActor), "Signal StopSound");
        gv_soundRegion = RegionEmpty();
        gv_soundRegionCreated = false;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:10628

    StatEventAddDataString(StatEventLastCreated(), "Hero", (libGame_gv_players[lp_heroIndex].lv_heroData.lv_unitType));
    StatEventSend(StatEventLastCreated());
    ActorScopeSend(ActorScopeFromUnit(libGame_gv_players[lp_player].lv_heroUnit), "StatusIncrement PreventDestroyOnDeath");
    if ((libGame_gv_heroDeath_RespawnMounted == true) && (libGame_gv_players[lp_player].lv_disableMount == false)) {
        libGame_gf_SendEventHeroSpecialCaseMounting(lp_player);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18240

    }

    ActorScopeSend(lv_scope, "Signal LootSprayKill");
    ActorSend(ActorFromScope(lv_scope, "::Main"), libNtve_gf_Create(libCore_gv_mountModelActor3, (libGame_gv_players[lv_sprayingPlayer].lv_lootContent.lv_loot_Spray.lv_sprayModelID)));
    ActorSend(ActorFromScope(lv_scope, libCore_gv_mountModelActor3), libNtve_gf_SpraySet(lv_spray));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:3707

        UnitIssueOrder(libMapM_gv_mMGardensDragonDragonTowers[lv_towerIndex].lv_shrineUnit, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
    }
    ActorScopeSend(ActorScopeFromActor(libMapM_gv_mMGardensDragonSoundRegionActor), "Signal StopSound");
    ActorRegionCreate(null, "DragonBeamEndRegion", libMapM_gv_mMGardensDragonSoundRegion);
    UnitBehaviorRemove(libMapM_gv_mMGardensDragonStatue, "GenericVehicleBehaviorEmpty", 1);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:7521

        TextTagDestroy(libMapM_gv_mMGardensDragonDragonTowers[lv_itObelisk].lv_helperText);
    }
    ActorScopeSend(ActorScopeFromActor(libMapM_gv_mMGardensDragonSoundRegionActor), "Signal StopSound");
    ActorRegionCreate(null, "DragonBeamEndRegion", libMapM_gv_mMGardensDragonSoundRegion);
    libGame_gf_SendEventMapDragonShireDragonActivated(libMapM_gv_mMGardensDragonStatue, libMapM_gv_mMGardensDragonPlayer);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:2258

                    if ((UnitGroupHasUnit(lv_heroessHidden[lv_itPlayerInIntro], lv_itHero) == false)) {
                        UnitGroupAdd(lv_heroessHidden[lv_itPlayerInIntro], lv_itHero);
                        ActorScopeSend(ActorScopeFromUnit(lv_itHero), (("SetFilterPlayers " + IntToString(lv_itPlayerInIntro))));
                    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:2285

                lv_itHero = UnitGroupUnitFromEnd(auto24AF5347_g, auto24AF5347_u);
                if (lv_itHero == null) { break; }
                ActorScopeSend(ActorScopeFromUnit(lv_itHero), (("SetFilterPlayers " + IntToString(lv_itPlayerInIntro) + " Clear")));
            }
            UnitGroupClear(lv_heroessHidden[lv_itPlayerInIntro]);

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:237

    StatEventAddDataString(StatEventLastCreated(), "Hero", (libGame_gv_players[lp_player].lv_heroData.lv_unitType));
    StatEventSend(StatEventLastCreated());
    ActorScopeSend(ActorScopeFromUnit(libGame_gv_players[lp_player].lv_heroUnit), "StatusIncrement PreventDestroyOnDeath");
    libGame_gv_players[lp_player].lv_cameraPlayerUnitGroupToFocusOn = libNtve_gf_ConvertUnitToUnitGroup(lv_dVaMechUnit);
    if (((lp_player != 1) || (libCore_gv_sYSGameMode != libCore_ge_GameModes_Tutorial1) || (libNtve_gf_PlayerInCinematicMode(1) == false))) {

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:3008


    TriggerEnable(TriggerGetCurrent(), false);
    ActorScopeSend(gv_cameraSoundActorScope, "Destroy");
    UnitAbilityEnable(gv_zeratul, "NovaNukeTimer", false);
    UnitAbilityEnable(gv_zeratul, "HeroNuclearStrike", false);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:3008


    TriggerEnable(TriggerGetCurrent(), false);
    ActorScopeSend(gv_cameraSoundActorScope, "Destroy");
    UnitAbilityEnable(gv_zeratul, "NovaNukeTimer", false);
    UnitAbilityEnable(gv_zeratul, "HeroNuclearStrike", false);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:14261

        TriggerEnable(TriggerGetCurrent(), true);
        Wait(0.0, c_timeGame);
        ActorScopeSend(ActorScopeFromUnit(EventUnit()), "Signal CandyCountHide");
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:15365

        UnitBehaviorAdd(EventPlayerEffectUsedUnit(c_effectUnitTarget), "BiomassBuff10PlusLife", EventPlayerEffectUsedUnit(c_effectUnitTarget), lv_biomass10Stacks);
        UnitBehaviorAdd(EventPlayerEffectUsedUnit(c_effectUnitTarget), "BiomassBuff1", EventPlayerEffectUsedUnit(c_effectUnitTarget), lv_biomass1Stacks);
        ActorScopeSend(ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget)), "Signal BiomassAnimGroupC");
    }
    else {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:15584

    libNtve_gf_SendActorMessageToUnit(EventUnit(), (("SetScale " + FixedToString((0.25 / lv_biomassMaxStacks * lv_biomassCountTotal + 1.25), 3))));
    if ((lv_biomassCountTotal >= 10)) {
        ActorScopeSend(ActorScopeFromUnit(EventUnit()), "Create BiomassBuffGlaze");
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:15589

    lv_biomassVisualIndicatorInterval = ((lv_biomassMaxStacks - 10) / 3);
    if ((lv_biomassCountTotal > (lv_biomassVisualIndicatorInterval * 2 + 10))) {
        ActorScopeSend(ActorScopeFromUnit(EventUnit()), "Signal BiomassAnimGroupC");
    }
    else if ((lv_biomassCountTotal > (lv_biomassVisualIndicatorInterval + 10))) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:15592

    }
    else if ((lv_biomassCountTotal > (lv_biomassVisualIndicatorInterval + 10))) {
        ActorScopeSend(ActorScopeFromUnit(EventUnit()), "Signal BiomassAnimGroupB");
    }
    else if ((lv_biomassCountTotal > 10)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:15595

    }
    else if ((lv_biomassCountTotal > 10)) {
        ActorScopeSend(ActorScopeFromUnit(EventUnit()), "Signal BiomassAnimGroupA");
    }
    return true;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:15888


    libNtve_gf_SendActorMessageToUnit(EventUnit(), (("SetScale " + FixedToString(((0.05 * lv_sacrificCount) + 1.0), 3))));
    ActorScopeSend(ActorScopeFromUnit(EventUnit()), libNtve_gf_Signal(IntToString(lv_sacrificCount)));
    return true;
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:16081

    libCOMI_gf_SetUnitAttributePoints("CommanderPrestigeAlarakMechBuff", EventPlayerEffectUsedUnit(c_effectUnitTarget), lv_currentStack);
    if ((lv_currentStack >= 8)) {
        ActorScopeSend(ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget)), "Signal PrestigeMechAnimGroupC");
    }
    else if ((lv_currentStack >= 4)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:16084

    }
    else if ((lv_currentStack >= 4)) {
        ActorScopeSend(ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget)), "Signal PrestigeMechAnimGroupB");
    }
    else if (true) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:16087

    }
    else if (true) {
        ActorScopeSend(ActorScopeFromUnit(EventPlayerEffectUsedUnit(c_effectUnitTarget)), "Signal PrestigeMechAnimGroupA");
    }
    return true;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:10415


    if ((libCOMU_gv_mutatorLaserDrillSoundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(libCOMU_gv_mutatorLaserDrillSoundRegionActor), "Signal StopSound");
        libCOMU_gv_mutatorLaserDrillSoundRegion = RegionEmpty();
        libCOMU_gv_mutatorLaserDrillSoundRegionCreated = false;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:10455


    if ((libCOMU_gv_mutatorLaserDrillSoundRegionCreated == true)) {
        ActorScopeSend(ActorScopeFromActor(libCOMU_gv_mutatorLaserDrillSoundRegionActor), "Signal StopSound");
        libCOMU_gv_mutatorLaserDrillSoundRegion = RegionEmpty();
        libCOMU_gv_mutatorLaserDrillSoundRegionCreated = false;