# Remove Death Models in Region

Grammar — Remove death models in region region
FlagsAction

Destroys all of the unit death models in the specified region and calls Kill All Particles. Be careful using this action because it kills all particles across the whole map, instead of just whithin the region.

# Arguments

  • region — Region

Returns — void

void libNtve_gf_RemoveDeathModelsinRegion(
	region lp_region,
);

Category: Actor / Destroy Actors

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:665

    DialogSetVisible(gv_mainDialog, PlayerGroupAll(), false);
    DialogSetVisible(gv_tutorialDialog, PlayerGroupAll(), false);
    libNtve_gf_RemoveDeathModelsinRegion(RegionPlayableMap());
    PortraitSetModel(libNtve_gf_CinematicPortrait(4), "AdjutantPortrait_L", false);
    VisRevealerDestroy(gv_tutorial_Visibility);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:4532

    }
    UnitGroupLoopEnd();
    libNtve_gf_RemoveDeathModelsinRegion(RegionPlayableMap());
    CameraSetBounds(PlayerGroupAll(), RegionFromId(8), true);
    libNtve_gf_CreateUnitsAtPoint2(1, "Marine", 0, gv_p01_USER, PointFromId(187));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:5096

    }
    UnitGroupLoopEnd();
    libNtve_gf_RemoveDeathModelsinRegion(RegionPlayableMap());
    CameraSetBounds(PlayerGroupAll(), RegionFromId(8), true);
    libNtve_gf_CreateUnitsAtPoint2(1, "Marine", 0, gv_p01_USER, PointFromId(187));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:5086

    PlayerSetState(gv_pLAYER_01_USER, c_playerStateXPGain, false);
    GameTimeOfDayPause(true);
    libNtve_gf_RemoveDeathModelsinRegion(RegionFromId(3));
    UnitPauseAll(true);
    auto7D4154A3_g = UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:665

    DialogSetVisible(gv_mainDialog, PlayerGroupAll(), false);
    DialogSetVisible(gv_tutorialDialog, PlayerGroupAll(), false);
    libNtve_gf_RemoveDeathModelsinRegion(RegionPlayableMap());
    PortraitSetModel(libNtve_gf_CinematicPortrait(4), "AdjutantPortrait_L", false);
    VisRevealerDestroy(gv_tutorial_Visibility);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:4532

    }
    UnitGroupLoopEnd();
    libNtve_gf_RemoveDeathModelsinRegion(RegionPlayableMap());
    CameraSetBounds(PlayerGroupAll(), RegionFromId(8), true);
    libNtve_gf_CreateUnitsAtPoint2(1, "Marine", 0, gv_p01_USER, PointFromId(187));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:5096

    }
    UnitGroupLoopEnd();
    libNtve_gf_RemoveDeathModelsinRegion(RegionPlayableMap());
    CameraSetBounds(PlayerGroupAll(), RegionFromId(8), true);
    libNtve_gf_CreateUnitsAtPoint2(1, "Marine", 0, gv_p01_USER, PointFromId(187));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:5086

    PlayerSetState(gv_pLAYER_01_USER, c_playerStateXPGain, false);
    GameTimeOfDayPause(true);
    libNtve_gf_RemoveDeathModelsinRegion(RegionFromId(3));
    UnitPauseAll(true);
    auto7D4154A3_g = UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:3933

    PlayerSetState(gv_pLAYER_01_USER, c_playerStateXPGain, false);
    GameTimeOfDayPause(true);
    libNtve_gf_RemoveDeathModelsinRegion(RegionFromId(6));
    UnitPauseAll(true);
    gv_cinematicHiddenUnits = UnitGroupEmpty();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:4783

    PlayerSetState(gv_pLAYER_01_USER, c_playerStateXPGain, false);
    GameTimeOfDayPause(true);
    libNtve_gf_RemoveDeathModelsinRegion(RegionEntireMap());
    UnitPauseAll(true);
    UnitGroupLoopBegin(UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:4577

    Wait(0.1, c_timeGame);
    CreepModify(PointFromId(576), 20.0, false, false);
    libNtve_gf_RemoveDeathModelsinRegion(RegionFromId(16));
    GameSetLighting("Char", 0.0);
    SoundChannelDSPRemove(PlayerGroupAll(), c_soundCategoryCombat, "LowPassSimple_700Hz");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:7344

    libSwaC_gf_StartingWorkersAutoHarvest(RegionFromId(25), RegionFromId(26));
    UIAlertClear(gv_pLAYER_01_USER);
    libNtve_gf_RemoveDeathModelsinRegion(RegionFromId(22));
    RegionPlayableMapSet(RegionEntireMap());
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoDefault(), 0.0, -1, 10.0, false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2mapMapScript.galaxy:3933

    PlayerSetState(gv_pLAYER_01_USER, c_playerStateXPGain, false);
    GameTimeOfDayPause(true);
    libNtve_gf_RemoveDeathModelsinRegion(RegionFromId(6));
    UnitPauseAll(true);
    gv_cinematicHiddenUnits = UnitGroupEmpty();

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:4783

    PlayerSetState(gv_pLAYER_01_USER, c_playerStateXPGain, false);
    GameTimeOfDayPause(true);
    libNtve_gf_RemoveDeathModelsinRegion(RegionEntireMap());
    UnitPauseAll(true);
    UnitGroupLoopBegin(UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2mapMapScript.galaxy:4577

    Wait(0.1, c_timeGame);
    CreepModify(PointFromId(576), 20.0, false, false);
    libNtve_gf_RemoveDeathModelsinRegion(RegionFromId(16));
    GameSetLighting("Char", 0.0);
    SoundChannelDSPRemove(PlayerGroupAll(), c_soundCategoryCombat, "LowPassSimple_700Hz");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2mapMapScript.galaxy:7344

    libSwaC_gf_StartingWorkersAutoHarvest(RegionFromId(25), RegionFromId(26));
    UIAlertClear(gv_pLAYER_01_USER);
    libNtve_gf_RemoveDeathModelsinRegion(RegionFromId(22));
    RegionPlayableMapSet(RegionEntireMap());
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoDefault(), 0.0, -1, 10.0, false);