# Kill Actor Scope

Grammar — Kill actor scope actorScope
FlagsNative | Action

Kills an actor scope along with all of the actors in that scope. An actor scope is a container for a set of actors.

# Arguments

  • actorscope — Actor Scope

Returns — void

native void ActorScopeKill(actorscope as);

Category: Actor / Destroy Actors

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:788

    // Transmission - SoundLink("TRaynor01Raynor00030", 0)
    libCamp_gf_SendTransmissionCampaign(gv_raynor, SoundLink("TRaynor01Raynor00030", 0), c_transmissionDurationAdd, 0.0, true);
    ActorScopeKill(libNtve_gf_ActorScopeLastCreated());
    libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);
    TriggerQueueExit();

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:788

    // Transmission - SoundLink("TRaynor01Raynor00030", 0)
    libCamp_gf_SendTransmissionCampaign(gv_raynor, SoundLink("TRaynor01Raynor00030", 0), c_transmissionDurationAdd, 0.0, true);
    ActorScopeKill(libNtve_gf_ActorScopeLastCreated());
    libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);
    TriggerQueueExit();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1853


    gv_kerriganSoundRegion = null;
    ActorScopeKill(ActorScopeFromActor(gv_kerriganSoundRegionActor));
    Wait(0.0625, c_timeGame);
    lv_x = (PointGetX(lv_a) + (Cos(lv_facing) * 5.0));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1919


    gv_narudSoundRegion = null;
    ActorScopeKill(ActorScopeFromActor(gv_narudSoundRegionActor));
    Wait(0.0625, c_timeGame);
    lv_x = (PointGetX(lv_a) + (Cos(lv_facing) * 5.0));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:538


    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_termsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2mapMapScript.galaxy:1853


    gv_kerriganSoundRegion = null;
    ActorScopeKill(ActorScopeFromActor(gv_kerriganSoundRegionActor));
    Wait(0.0625, c_timeGame);
    lv_x = (PointGetX(lv_a) + (Cos(lv_facing) * 5.0));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2mapMapScript.galaxy:1919


    gv_narudSoundRegion = null;
    ActorScopeKill(ActorScopeFromActor(gv_narudSoundRegionActor));
    Wait(0.0625, c_timeGame);
    lv_x = (PointGetX(lv_a) + (Cos(lv_facing) * 5.0));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2mapMapScript.galaxy:538


    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_termsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:521

    lv_actorRegion = libNtve_gf_ActorLastCreated();
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_actorMessage, "Doodad", ("ScopeContains " + lp_doodadType));
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
    return true;
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2mapMapScript.galaxy:521

    lv_actorRegion = libNtve_gf_ActorLastCreated();
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_actorMessage, "Doodad", ("ScopeContains " + lp_doodadType));
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
    return true;
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:3688


    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_terms);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1151

    lv_animTermsString = (lv_animTermsString + "!HasStatus DoodadKilled");
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Doodad", lv_animTermsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1166

    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _DeathModel");
    ActorWorldParticleFXDestroy();
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1180

    lv_actorRegion = libNtve_gf_ActorLastCreated();
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy Immediate", "Model", "ScopeContains _DeathModel");
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
    ActorSend(ActorFrom("::Scene"), "SceneParticlesDestroy");
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1286


    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1497


    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1523

    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "AnimPlay Death Death PlayForever,NonLooping", "Doodad", lv_animTermsString);
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "StatusIncrement DoodadKilled", "Doodad", lv_statusTermsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1046

    lv_animTermsString = (lv_animTermsString + "!HasStatus DoodadKilled");
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Doodad", lv_animTermsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1062

    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _DeathModel");
    ActorWorldParticleFXDestroy();
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1076

    lv_actorRegion = libNtve_gf_ActorLastCreated();
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy Immediate", "Model", "ScopeContains _DeathModel");
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
    ActorSend(ActorFrom("::Scene"), "SceneParticlesDestroy");
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1182


    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1306


    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1332

    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "AnimPlay Death Death PlayForever,NonLooping", "Doodad", lv_animTermsString);
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "StatusIncrement DoodadKilled", "Doodad", lv_statusTermsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:1196

    for ( ; ( (autoAAFCADE5_ai >= 0 && lv_itScope <= autoAAFCADE5_ae) || (autoAAFCADE5_ai < 0 && lv_itScope >= autoAAFCADE5_ae) ) ; lv_itScope += autoAAFCADE5_ai ) {
        if ((gv_buildingScopes[lv_itScope] != null)) {
            ActorScopeKill(gv_buildingScopes[lv_itScope]);
        }

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:929

    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _DeadClearable");
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _DeadClearable");
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:1196

    for ( ; ( (autoAAFCADE5_ai >= 0 && lv_itScope <= autoAAFCADE5_ae) || (autoAAFCADE5_ai < 0 && lv_itScope >= autoAAFCADE5_ae) ) ; lv_itScope += autoAAFCADE5_ai ) {
        if ((gv_buildingScopes[lv_itScope] != null)) {
            ActorScopeKill(gv_buildingScopes[lv_itScope]);
        }

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:929

    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _DeadClearable");
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _DeadClearable");
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:1303

    else {
    }
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:2521

    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal OrderMegaKill", "Doodad", "ScopeContains _Spectator");
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal ChaosMegaKill", "Doodad", "ScopeContains _Spectator");
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
    return true;
}

mods/heroesbrawlmods/arenamodemods/gardenarena.stormmodbase.stormdata/LibAMGT.galaxy:189

    }

    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2158

    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _Clearable");
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _Clearable");
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:1499

    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _Clearable");
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _Clearable");
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2932


    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_termsString);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmodbase.stormdata/LibMTOD.galaxy:690

    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _ToDClearable");
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _ToDClearable");
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmodbase.stormdata/LibMTOD.galaxy:853

    else {
    }
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmodbase.stormdata/LibMTOD.galaxy:1965

    lv_actorRegion = libNtve_gf_ActorLastCreated();
    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal OpenSesame", "Doodad", "ScopeContains _ArchwayDoor");
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
    return true;
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:3825


    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_terms);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}

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


    ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_terms);
    ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}