# Kill Doodads In Region
Grammar — Kill doodadType doodads in region target
Flags —Action
Causes all of the doodads in the selected region to play their death animation (if they have one).
# Arguments
region
— Targetstring
<gamelink::Actor> — Doodad Type
Returns — void
void libNtve_gf_KillDoodadsInRegion(
region lp_target,
string lp_doodadType,
);
# Related
Category: Animation / Basic
- Play Animation —
void
— libNtve_gf_PlayAnimation - Play Animation On Doodads In Region —
void
— libNtve_gf_PlayAnimationOnDoodadsInRegion - Kill Doodads In Region —
void
— libNtve_gf_KillDoodadsInRegion - Clear Animation —
void
— libNtve_gf_ClearAnimation - Clear Animation On Doodads In Region —
void
— libNtve_gf_ClearAnimationOnDoodadsInRegion - Turn Animation Properties On —
void
— libNtve_gf_TurnAnimationPropertiesOn - Turn Animation Properties On With Blend In/Out —
void
— libNtve_gf_TurnAnimationPropertiesOnWithBlendInOut - Turn Animation Properties Off —
void
— libNtve_gf_TurnAnimationPropertiesOff - Turn All Animation Properties Off —
void
— libNtve_gf_TurnAllAnimationPropertiesOff
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:2836
Wait(4.0, c_timeGame);
CameraShakeStart(1, c_cameraPositionTarget, c_cameraDirectionZ, 0.06, 2.0, 100.0, 2.0);
libNtve_gf_KillDoodadsInRegion(RegionCircle(CameraGetTarget(gv_p01_USER), 15.0), "TTosh01RockSpires");
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2map — MapScript.galaxy:2836
Wait(4.0, c_timeGame);
CameraShakeStart(1, c_cameraPositionTarget, c_cameraDirectionZ, 0.06, 2.0, 100.0, 2.0);
libNtve_gf_KillDoodadsInRegion(RegionCircle(CameraGetTarget(gv_p01_USER), 15.0), "TTosh01RockSpires");
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:1751
CameraShake(gv_pLAYER_01_USER, "Light", "Earthquake", 1.0, 1.5, 5.0);
Wait(4.0, c_timeGame);
libNtve_gf_KillDoodadsInRegion(RegionCircle(CameraGetTarget(gv_pLAYER_01_USER), 15.0), "TTosh01RockSpires");
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:1247
CameraShakeStart(gv_pLAYER_01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.5, 2.0, 100.0, 2.0);
Wait(0.5, c_timeGame);
libNtve_gf_KillDoodadsInRegion(RegionFromId(13), "GateControlCables");
libNtve_gf_CreateExplosionAtPoint(0, 0, UnitGetPosition(EventUnit()));
Wait(0.5, c_timeGame);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:1438
}
libNtve_gf_KillDoodadsInRegion(RegionFromId(4), "CliffSpikesDestructible");
SoundPlayAtPoint(SoundLink("Aberration_Unburrow", -1), PlayerGroupAll(), RegionGetCenter(RegionFromId(4)), 8.0, 70.0, 0.0);
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:938
}
else {
libNtve_gf_KillDoodadsInRegion(lp_region, "CliffSpikesDestructible");
}
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:1658
TriggerEnable(TriggerGetCurrent(), false);
Wait(0.25, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionFromId(28), "SpaceDockPowerLines");
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(28)));
Wait(0.25, c_timeAI);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:1661
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(28)));
Wait(0.25, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionFromId(29), "SpaceDockPowerLines");
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(29)));
Wait(0.25, c_timeAI);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:1664
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(29)));
Wait(0.25, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionFromId(32), "SpaceDockPowerLines");
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(32)));
Wait(0.25, c_timeAI);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:1667
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(32)));
Wait(0.25, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionFromId(42), "SpaceDockPowerLines");
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(42)));
Wait(2.0, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map — MapScript.galaxy:1751
CameraShake(gv_pLAYER_01_USER, "Light", "Earthquake", 1.0, 1.5, 5.0);
Wait(4.0, c_timeGame);
libNtve_gf_KillDoodadsInRegion(RegionCircle(CameraGetTarget(gv_pLAYER_01_USER), 15.0), "TTosh01RockSpires");
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map — MapScript.galaxy:1247
CameraShakeStart(gv_pLAYER_01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.5, 2.0, 100.0, 2.0);
Wait(0.5, c_timeGame);
libNtve_gf_KillDoodadsInRegion(RegionFromId(13), "GateControlCables");
libNtve_gf_CreateExplosionAtPoint(0, 0, UnitGetPosition(EventUnit()));
Wait(0.5, c_timeGame);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar01.sc2map — MapScript.galaxy:1438
}
libNtve_gf_KillDoodadsInRegion(RegionFromId(4), "CliffSpikesDestructible");
SoundPlayAtPoint(SoundLink("Aberration_Unburrow", -1), PlayerGroupAll(), RegionGetCenter(RegionFromId(4)), 8.0, 70.0, 0.0);
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:938
}
else {
libNtve_gf_KillDoodadsInRegion(lp_region, "CliffSpikesDestructible");
}
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map — MapScript.galaxy:1658
TriggerEnable(TriggerGetCurrent(), false);
Wait(0.25, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionFromId(28), "SpaceDockPowerLines");
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(28)));
Wait(0.25, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map — MapScript.galaxy:1661
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(28)));
Wait(0.25, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionFromId(29), "SpaceDockPowerLines");
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(29)));
Wait(0.25, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map — MapScript.galaxy:1664
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(29)));
Wait(0.25, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionFromId(32), "SpaceDockPowerLines");
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(32)));
Wait(0.25, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map — MapScript.galaxy:1667
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(32)));
Wait(0.25, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionFromId(42), "SpaceDockPowerLines");
libNtve_gf_CreateExplosionAtPoint(libNtve_ge_ExplosionSize_Small, libNtve_ge_ExplosionType_Protoss, RegionGetCenter(RegionFromId(42)));
Wait(2.0, c_timeAI);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:2626
TriggerEnable(TriggerGetCurrent(), false);
PingDestroy(gv_conduit01_Ping);
libNtve_gf_KillDoodadsInRegion(RegionCircle(UnitGetPosition(gv_conduit01), 7.0), "CreepWeb");
libVCMI_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/D2A91BD1"));
MinimapPing(PlayerGroupAll(), UnitGetPosition(gv_conduit01), 2.0, Color(100.00, 0.00, 0.00));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:2769
TriggerEnable(TriggerGetCurrent(), false);
PingDestroy(gv_conduit02_Ping);
libNtve_gf_KillDoodadsInRegion(RegionCircle(UnitGetPosition(gv_conduit02), 7.0), "CreepWeb");
libVCMI_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/660AAA7D"));
MinimapPing(PlayerGroupAll(), UnitGetPosition(gv_conduit02), 3.0, Color(0.00, 100.00, 0.00));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:5670
gf_SetUpUnitFlyBy(3, "Phoenix", gv_pLAYER_04_PROTOSS_RESCUE, 12.0, PointFromId(3982), PointFromId(3983));
Wait(2.0, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionCircle(RegionGetCenter(RegionFromId(30)), 24.0), "Aiur_Broodlord_Crash");
SoundPlayForPlayer(SoundLink("PAiur01_BroodLordIncoming", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
Wait(2.0, c_timeAI);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:5705
gf_SetUpUnitFlyBy(3, "Phoenix", gv_pLAYER_04_PROTOSS_RESCUE, 12.0, PointFromId(3984), PointFromId(3985));
Wait(2.0, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionCircle(RegionGetCenter(RegionFromId(32)), 24.0), "Aiur_Broodlord_Crash");
SoundPlayForPlayer(SoundLink("PAiur01_BroodLordIncoming", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
Wait(2.0, c_timeAI);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:4840
CameraShake(gv_pLAYER_01_USER, "Light", "Earthquake", 0.5, 0.5, 2.0);
libNtve_gf_KillDoodadsInRegion(RegionFromId(32), "Aiur_Temple_CliffDoodads_Destructible");
UnitKill(UnitFromId(586));
UnitKill(UnitFromId(587));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:3303
if ((gv_explodingCliffBuildings[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_explodingCliffBuildings[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_explodingCliffBuildings[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_explodingCliffBuildings[lv_index].lv_region, "ExplodingCliffBuilding");
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:3311
if ((gv_damagedCliffBuildings[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_damagedCliffBuildings[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_damagedCliffBuildings[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_damagedCliffBuildings[lv_index].lv_region, "KorhalPlatform_DamagedCliffBuilding");
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:3319
if ((gv_korhalDebris[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_korhalDebris[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_korhalDebris[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_korhalDebris[lv_index].lv_region, "Korhal_Debris");
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:2626
TriggerEnable(TriggerGetCurrent(), false);
PingDestroy(gv_conduit01_Ping);
libNtve_gf_KillDoodadsInRegion(RegionCircle(UnitGetPosition(gv_conduit01), 7.0), "CreepWeb");
libVCMI_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/D2A91BD1"));
MinimapPing(PlayerGroupAll(), UnitGetPosition(gv_conduit01), 2.0, Color(100.00, 0.00, 0.00));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:2769
TriggerEnable(TriggerGetCurrent(), false);
PingDestroy(gv_conduit02_Ping);
libNtve_gf_KillDoodadsInRegion(RegionCircle(UnitGetPosition(gv_conduit02), 7.0), "CreepWeb");
libVCMI_gf_CreateMissionAutosavePoint(StringExternal("Param/Value/660AAA7D"));
MinimapPing(PlayerGroupAll(), UnitGetPosition(gv_conduit02), 3.0, Color(0.00, 100.00, 0.00));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:5670
gf_SetUpUnitFlyBy(3, "Phoenix", gv_pLAYER_04_PROTOSS_RESCUE, 12.0, PointFromId(3982), PointFromId(3983));
Wait(2.0, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionCircle(RegionGetCenter(RegionFromId(30)), 24.0), "Aiur_Broodlord_Crash");
SoundPlayForPlayer(SoundLink("PAiur01_BroodLordIncoming", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
Wait(2.0, c_timeAI);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:5705
gf_SetUpUnitFlyBy(3, "Phoenix", gv_pLAYER_04_PROTOSS_RESCUE, 12.0, PointFromId(3984), PointFromId(3985));
Wait(2.0, c_timeAI);
libNtve_gf_KillDoodadsInRegion(RegionCircle(RegionGetCenter(RegionFromId(32)), 24.0), "Aiur_Broodlord_Crash");
SoundPlayForPlayer(SoundLink("PAiur01_BroodLordIncoming", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
Wait(2.0, c_timeAI);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:4840
CameraShake(gv_pLAYER_01_USER, "Light", "Earthquake", 0.5, 0.5, 2.0);
libNtve_gf_KillDoodadsInRegion(RegionFromId(32), "Aiur_Temple_CliffDoodads_Destructible");
UnitKill(UnitFromId(586));
UnitKill(UnitFromId(587));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:3303
if ((gv_explodingCliffBuildings[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_explodingCliffBuildings[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_explodingCliffBuildings[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_explodingCliffBuildings[lv_index].lv_region, "ExplodingCliffBuilding");
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:3311
if ((gv_damagedCliffBuildings[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_damagedCliffBuildings[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_damagedCliffBuildings[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_damagedCliffBuildings[lv_index].lv_region, "KorhalPlatform_DamagedCliffBuilding");
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:3319
if ((gv_korhalDebris[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_korhalDebris[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_korhalDebris[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_korhalDebris[lv_index].lv_region, "Korhal_Debris");
}
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova02.sc2map/MapScript.galaxy:5770
UnitIssueOrder(UnitGroupUnit(gv_introReapers, 4), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(485)), c_orderQueueReplace);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(100.00, 100.00, 100.00, 0.00), 0.0, true);
libNtve_gf_KillDoodadsInRegion(RegionEntireMap(), "SnowBase_Fog_Mountain_Upper");
libNCMI_gf_SendTransmissionCampaign(gv_nova, "Mission_Nova02|Line00081", c_transmissionDurationAdd, 0.0, true, libNCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libNCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
TriggerExecute(gt_IntroSpawnSCVs, true, false);
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova02.sc2map — MapScript.galaxy:5770
UnitIssueOrder(UnitGroupUnit(gv_introReapers, 4), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(485)), c_orderQueueReplace);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(100.00, 100.00, 100.00, 0.00), 0.0, true);
libNtve_gf_KillDoodadsInRegion(RegionEntireMap(), "SnowBase_Fog_Mountain_Upper");
libNCMI_gf_SendTransmissionCampaign(gv_nova, "Mission_Nova02|Line00081", c_transmissionDurationAdd, 0.0, true, libNCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libNCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
TriggerExecute(gt_IntroSpawnSCVs, true, false);