# Remove Doodads in Region
Grammar — Remove doodadType doodads in the target region
Flags —Action
Instantly removes all doodads of the specified type from a game region. If the doodad being removed has a footprint, that footprint will still linger, even though the doodad’s actor has been destroyed.
# Arguments
region
— Targetstring
<gamelink::Actor> — Doodad Type
Returns — void
void libNtve_gf_RemoveDoodadsinRegion(
region lp_target,
string lp_doodadType,
);
# 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/tvalerian03.sc2map/MapScript.galaxy:926
GameSetBackground(c_backgroundFixed, null, 100.0);
if ((gf_ABChoiceA() == true)) {
libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "DestroyedPlatformChunks");
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:929
}
else {
libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "DestroyedNydusWorm");
}
libNtve_gf_PreloadModelObject("ArtifactFullyCharged", false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:926
GameSetBackground(c_backgroundFixed, null, 100.0);
if ((gf_ABChoiceA() == true)) {
libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "DestroyedPlatformChunks");
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:929
}
else {
libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "DestroyedNydusWorm");
}
libNtve_gf_PreloadModelObject("ArtifactFullyCharged", false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:5749
UnitRemove(UnitFromId(1210));
UnitRemove(UnitFromId(1211));
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(92), "PathingandSightBlocker1x1Doodad");
VisRevealArea(gv_pLAYER_01_USER, RegionFromId(45), 6.0, false);
Wait(0.25, c_timeGame);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:3906
UnitKill(autoD1AA4B39_var);
}
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(16), "Decal");
TerrainShowRegion(RegionFromId(16), false);
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:4113
UnitKill(auto1C8997A3_var);
}
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(20), "Decal");
TerrainShowRegion(RegionFromId(20), false);
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11752
TerrainShowRegion(RegionFromId(49), false);
TerrainShowRegion(RegionFromId(51), false);
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(32), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(31), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(30), "Decal");
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11753
TerrainShowRegion(RegionFromId(51), false);
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(32), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(31), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(30), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(43), "Decal");
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11754
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(32), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(31), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(30), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(43), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(49), "Decal");
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11755
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(31), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(30), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(43), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(49), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(51), "Decal");
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11756
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(30), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(43), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(49), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(51), "Decal");
if ((gv_cinematicCompleted == true)) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11757
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(43), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(49), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(51), "Decal");
if ((gv_cinematicCompleted == true)) {
lv_fadeDuration = 1.5;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12008
FogSetEnabled(false);
EnvironmentShow(c_environmentTerrain, false);
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(29), null);
UnitRemove(UnitFromId(479));
SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_Lab02Train", c_soundtrackCueAny, c_soundtrackIndexAny, true);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12149
CameraSave(gv_pLAYER_01_USER);
libNtve_gf_StoreUnitSelection(gv_pLAYER_01_USER, libNtve_ge_UnitSelectionStoreOption_ClearUnitSelection);
libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "UmojanLabTramBackground");
libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "UmojanLabTramBackgroundNaturalCliffs");
VisRevealerDestroy(gv_s3_TramRevealer1);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:8617
GameSetLighting("DesertWorld", 0.0);
FogSetColor(Color(69.41, 59.22, 39.61));
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(15), null);
auto84C1C953_g = UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto84C1C953_u = UnitGroupCount(auto84C1C953_g, c_unitCountAll);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:3811
lv_location = UnitGetPosition(gv_poolEssence[lv_index]);
libNtve_gf_RemoveDoodadsinRegion(RegionCircle(lv_location, 10.0), "ZerusPoolSparkles");
UnitKill(gv_poolEssence[lv_index]);
if ((UnitIsAlive(gv_poolEssence[1]) == false) && (UnitIsAlive(gv_poolEssence[2]) == false) && (UnitIsAlive(gv_poolEssence[3]) == false)) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map — MapScript.galaxy:5749
UnitRemove(UnitFromId(1210));
UnitRemove(UnitFromId(1211));
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(92), "PathingandSightBlocker1x1Doodad");
VisRevealArea(gv_pLAYER_01_USER, RegionFromId(45), 6.0, false);
Wait(0.25, c_timeGame);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:3906
UnitKill(autoD1AA4B39_var);
}
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(16), "Decal");
TerrainShowRegion(RegionFromId(16), false);
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:4113
UnitKill(auto1C8997A3_var);
}
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(20), "Decal");
TerrainShowRegion(RegionFromId(20), false);
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:11752
TerrainShowRegion(RegionFromId(49), false);
TerrainShowRegion(RegionFromId(51), false);
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(32), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(31), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(30), "Decal");
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:11753
TerrainShowRegion(RegionFromId(51), false);
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(32), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(31), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(30), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(43), "Decal");
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:11754
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(32), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(31), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(30), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(43), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(49), "Decal");
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:11755
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(31), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(30), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(43), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(49), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(51), "Decal");
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:11756
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(30), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(43), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(49), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(51), "Decal");
if ((gv_cinematicCompleted == true)) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:11757
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(43), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(49), "Decal");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(51), "Decal");
if ((gv_cinematicCompleted == true)) {
lv_fadeDuration = 1.5;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:12008
FogSetEnabled(false);
EnvironmentShow(c_environmentTerrain, false);
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(29), null);
UnitRemove(UnitFromId(479));
SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_Lab02Train", c_soundtrackCueAny, c_soundtrackIndexAny, true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:12149
CameraSave(gv_pLAYER_01_USER);
libNtve_gf_StoreUnitSelection(gv_pLAYER_01_USER, libNtve_ge_UnitSelectionStoreOption_ClearUnitSelection);
libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "UmojanLabTramBackground");
libNtve_gf_RemoveDoodadsinRegion(RegionEntireMap(), "UmojanLabTramBackgroundNaturalCliffs");
VisRevealerDestroy(gv_s3_TramRevealer1);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2map — MapScript.galaxy:8617
GameSetLighting("DesertWorld", 0.0);
FogSetColor(Color(69.41, 59.22, 39.61));
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(15), null);
auto84C1C953_g = UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto84C1C953_u = UnitGroupCount(auto84C1C953_g, c_unitCountAll);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:3811
lv_location = UnitGetPosition(gv_poolEssence[lv_index]);
libNtve_gf_RemoveDoodadsinRegion(RegionCircle(lv_location, 10.0), "ZerusPoolSparkles");
UnitKill(gv_poolEssence[lv_index]);
if ((UnitIsAlive(gv_poolEssence[1]) == false) && (UnitIsAlive(gv_poolEssence[2]) == false) && (UnitIsAlive(gv_poolEssence[3]) == false)) {
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:3002
}
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(120), "DOM_Fire_Large_Long");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(120), "DOM_Fire_Large");
return true;
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:3003
}
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(120), "DOM_Fire_Large_Long");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(120), "DOM_Fire_Large");
return true;
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:7789
gv_flashbackZoomCamera = CameraInfoFromId(2433);
if ((gv_flashbackProgression == 4)) {
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_a");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_f");
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:7790
if ((gv_flashbackProgression == 4)) {
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_a");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_f");
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:7791
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_a");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_f");
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:8233
gv_flashbackZoomCamera = CameraInfoFromId(2432);
if ((gv_flashbackProgression == 4)) {
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_d");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_f");
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:8234
if ((gv_flashbackProgression == 4)) {
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_d");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_f");
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:8235
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_d");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_f");
}
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2map — MapScript.galaxy:3002
}
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(120), "DOM_Fire_Large_Long");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(120), "DOM_Fire_Large");
return true;
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2map — MapScript.galaxy:3003
}
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(120), "DOM_Fire_Large_Long");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(120), "DOM_Fire_Large");
return true;
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2map — MapScript.galaxy:7789
gv_flashbackZoomCamera = CameraInfoFromId(2433);
if ((gv_flashbackProgression == 4)) {
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_a");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_f");
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2map — MapScript.galaxy:7790
if ((gv_flashbackProgression == 4)) {
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_a");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_f");
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2map — MapScript.galaxy:7791
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_a");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(52), "PortCity_CarTraffic_f");
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2map — MapScript.galaxy:8233
gv_flashbackZoomCamera = CameraInfoFromId(2432);
if ((gv_flashbackProgression == 4)) {
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_d");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_f");
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2map — MapScript.galaxy:8234
if ((gv_flashbackProgression == 4)) {
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_d");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_f");
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2map — MapScript.galaxy:8235
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_d");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_e");
libNtve_gf_RemoveDoodadsinRegion(RegionFromId(59), "PortCity_CarTraffic_f");
}