# Kill Actor Scope
Grammar — Kill actor scope actorScope
Flags —Native
|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);
# Related
Category: Actor / Destroy Actors
- Kill Actor Scope —
void
— ActorScopeKill - Kill All Particles —
void
— ActorWorldParticleFXDestroy - Kill Model —
void
— libNtve_gf_KillModel - Orphan Actor Scope —
void
— ActorScopeOrphan - Remove Doodads in Region —
void
— libNtve_gf_RemoveDoodadsinRegion - Remove Death Models in Region —
void
— libNtve_gf_RemoveDeathModelsinRegion - Remove Death Models in Region Immediately —
void
— libNtve_gf_RemoveDeathModelsinRegionImmediately
# Examples
campaigns/liberty.sc2campaign — base.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.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/swarm.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2map — MapScript.galaxy:538
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_termsString);
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
campaigns/void.sc2campaign — base.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.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/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:3688
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_terms);
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/core.sc2mod — base.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.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1166
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Model", "ScopeContains _DeathModel");
ActorWorldParticleFXDestroy();
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/core.sc2mod — base.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.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1286
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString);
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1497
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString);
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/core.sc2mod — base.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.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1062
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Destroy", "Unit", "ScopeContains _DeathModel");
ActorWorldParticleFXDestroy();
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/core.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1182
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString);
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1306
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, (lv_actorMessageString), "Doodad", lv_termsString);
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/core.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmap — map/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.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/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:1303
else {
}
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.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.stormmod — base.stormdata/LibAMGT.galaxy:189
}
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.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.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2932
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_termsString);
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.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.stormmod — base.stormdata/LibMTOD.galaxy:853
else {
}
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.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.sc2mod — base.sc2data/LibNCMI.galaxy:3825
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_terms);
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:11580
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, "Doodad", lv_terms);
ActorScopeKill(ActorScopeFromActor(lv_actorRegion));
}