# Enable/Disable Suicide For Unit
Grammar — controlled suicide for unit
Flags —Native
|Action
If suicide is enabled for a unit, the AI will immediately seek out and repeatedly attack the nearest enemy until the suiciding unit is destroyed. Setting a bully to suicide will tag it as missing and cause the AI to rebuild it, since it should not be returning alive.
# Arguments
unit
— Unitbool
<preset::Enable_Disable_Option> — Enable/Disable
Returns — void
native void AISetUnitSuicide(unit u, bool enable);
# Related
Category: AI / MiscCampaign / Actions
- Pause AI Time —
void
— AITimePause - Start Campaign AI For All Players —
void
— CampaignInitAI - Start Campaign AI For Player —
void
— AICampaignStart - Global Suicide —
void
— AIGlobalSuicide - Enable/Disable Script Control For Unit —
void
— AISetUnitScriptControlled - Enable/Disable Script Control For Unit Group —
void
— AISetGroupScriptControlled - Enable/Disable Wave Use For Unit —
void
— AISetUnitNotUsableInWaves - Enable/Disable Wave Use For Unit Group —
void
— AISetGroupNotUsableInWaves - Enable/Disable Suicide For Unit —
void
— AISetUnitSuicide - Enable/Disable Suicide For Unit Group —
void
— AISetGroupSuicide - Remove Unit From All Waves —
void
— AIRemoveUnitFromAnyWaves - Remove Unit Group From All Waves —
void
— AIRemoveGroupFromAnyWaves - Remove Unit From All Waves And Set Home —
void
— AIRemoveUnitFromAnyWavesAndSetHome - Remove Unit Group From All Waves And Set Home —
void
— AIRemoveGroupFromAnyWavesAndSetHome - Init Campaign Towns —
void
— AIInitCampaignTowns - Init Campaign Harvesting —
void
— AIInitCampaignHarvest - Issue AI Order —
void
— libNtve_gf_AICast
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1764
lv_pickedSpawner = UnitGroupRandomUnit(lv_spawners, c_unitCountAlive);
libNtve_gf_CreateUnitsAtPoint2(1, "InfestedTerranCampaign", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lv_pickedSpawner));
AISetUnitSuicide(UnitLastCreated(), true);
UnitGroupRemove(lv_spawners, lv_pickedSpawner);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1777
if ((gv_timeOfDay == ge_PRESET_TimeOfDay_Night) && (UnitGroupCount(lv_spawners, c_unitCountAlive) > 0)) {
libNtve_gf_CreateUnitsAtPoint2(1, "InfestedCivilian", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lv_pickedSpawner));
AISetUnitSuicide(UnitLastCreated(), true);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1812
if (auto7D21AEAB_var == null) { break; }
UnitGroupRemove(gv_terrorFleetGroup, auto7D21AEAB_var);
AISetUnitSuicide(auto7D21AEAB_var, true);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:315
UnitIssueOrder(UnitLastCreated(), Order(AbilityCommand("BurrowInfestedCivilianUp", 0)), c_orderQueueReplace);
AISetUnitScriptControlled(UnitLastCreated(), false);
AISetUnitSuicide(UnitLastCreated(), true);
}
auto4F8FA54E_n = lp_marine;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:323
UnitIssueOrder(UnitLastCreated(), Order(AbilityCommand("BurrowInfestedTerranCampaignUp", 0)), c_orderQueueReplace);
AISetUnitScriptControlled(UnitLastCreated(), false);
AISetUnitSuicide(UnitLastCreated(), true);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:2071
Wait(0.5, c_timeGame);
libNtve_gf_CreateUnitsWithDefaultFacing(1, gv_eggData[lv_eggType].lv_spawnType, 0, gv_eggData[lv_eggType].lv_spawnOwner, lv_eggPosition);
AISetUnitSuicide(UnitLastCreated(), true);
if ((UnitGetType(UnitLastCreated()) == "InfestedAbomination")) {
gf_SetUnitMaxLife(UnitLastCreated(), gv_aberrationLife);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:952
auto55B27610_var = UnitGroupUnitFromEnd(auto55B27610_g, auto55B27610_u);
if (auto55B27610_var == null) { break; }
AISetUnitSuicide(auto55B27610_var, true);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:2750
AIRemoveUnitFromAnyWaves(auto16B0C7AE_var);
if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1) && (UnitGetType(auto16B0C7AE_var) != "Observer")) {
AISetUnitSuicide(auto16B0C7AE_var, true);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:1361
for ( ; ( (auto5F0EABE7_ai >= 0 && lv_i <= auto5F0EABE7_ae) || (auto5F0EABE7_ai < 0 && lv_i >= auto5F0EABE7_ae) ) ; lv_i += auto5F0EABE7_ai ) {
AISetUnitScriptControlled(gv_initialMarines[lv_i], false);
AISetUnitSuicide(gv_initialMarines[lv_i], true);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:1434
for ( ; ( (autoC1760395_ai >= 0 && lv_i <= autoC1760395_ae) || (autoC1760395_ai < 0 && lv_i >= autoC1760395_ae) ) ; lv_i += autoC1760395_ai ) {
AISetUnitScriptControlled(gv_aOEMarines[lv_i], false);
AISetUnitSuicide(gv_aOEMarines[lv_i], true);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:3499
Wait(2.0, c_timeGame);
AISetUnitScriptControlled(lv_chosenTank, false);
AISetUnitSuicide(lv_chosenTank, true);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:326
lv_u = UnitGroupUnitFromEnd(auto689ABB5F_g, auto689ABB5F_u);
if (lv_u == null) { break; }
AISetUnitSuicide(lv_u, true);
UnitGroupRemove(gv_suicidalBullies, lv_u);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3563
UnitSetOwner(EventUnitProgressUnit(), gv_p3_WARPEDINPROTOSS, true);
AISetUnitSuicide(EventUnitProgressUnit(), true);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3596
Wait(0.2, c_timeGame);
UnitSetOwner(EventUnitCargo(), gv_p3_WARPEDINPROTOSS, true);
AISetUnitSuicide(EventUnitCargo(), true);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:5398
auto08823487_var = UnitGroupUnitFromEnd(auto08823487_g, auto08823487_u);
if (auto08823487_var == null) { break; }
AISetUnitSuicide(auto08823487_var, true);
}
TriggerExecute(gt_MidMovePlayerUnits, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:1326
autoB98C19F2_var = UnitGroupUnitFromEnd(autoB98C19F2_g, autoB98C19F2_u);
if (autoB98C19F2_var == null) { break; }
AISetUnitSuicide(autoB98C19F2_var, true);
}
auto0C23000F_g = UnitGroup(null, gv_pLAYER03_PROTOSS, RegionPlayableMap(), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4144
if (auto113A4E1E_val == 0) {
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1307));
AISetUnitSuicide(UnitLastCreated(), true);
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1307));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4147
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1307));
AISetUnitSuicide(UnitLastCreated(), true);
}
else if (auto113A4E1E_val == 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4151
else if (auto113A4E1E_val == 1) {
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1308));
AISetUnitSuicide(UnitLastCreated(), true);
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1308));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4154
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1308));
AISetUnitSuicide(UnitLastCreated(), true);
}
else if (auto113A4E1E_val == 2) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4158
else if (auto113A4E1E_val == 2) {
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1304));
AISetUnitSuicide(UnitLastCreated(), true);
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1304));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4161
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1304));
AISetUnitSuicide(UnitLastCreated(), true);
}
else if (auto113A4E1E_val == 3) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4165
else if (auto113A4E1E_val == 3) {
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1309));
AISetUnitSuicide(UnitLastCreated(), true);
Wait(2.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1309));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4168
Wait(2.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1309));
AISetUnitSuicide(UnitLastCreated(), true);
}
else if (auto113A4E1E_val == 4) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4172
else if (auto113A4E1E_val == 4) {
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1350));
AISetUnitSuicide(UnitLastCreated(), true);
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1350));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4175
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1350));
AISetUnitSuicide(UnitLastCreated(), true);
}
else if (auto113A4E1E_val == 5) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:1416
if (auto4CDF0813_var == null) { break; }
AISetUnitScriptControlled(auto4CDF0813_var, false);
AISetUnitSuicide(auto4CDF0813_var, true);
UnitGroupRemove(gv_leviathanMutaGroup, auto4CDF0813_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:2763
}
AISetUnitSuicide(EventUnit(), true);
UnitSetTeamColorIndex(EventUnit(), gv_specialUnitColor);
if ((UnitGetType(EventUnit()) == "Mutalisk")) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:261
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropEnergyPercent, 100.0);
AISetUnitSuicide(UnitLastCreated(), true);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:280
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropEnergyPercent, 100.0);
AISetUnitSuicide(UnitLastCreated(), true);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:1764
lv_pickedSpawner = UnitGroupRandomUnit(lv_spawners, c_unitCountAlive);
libNtve_gf_CreateUnitsAtPoint2(1, "InfestedTerranCampaign", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lv_pickedSpawner));
AISetUnitSuicide(UnitLastCreated(), true);
UnitGroupRemove(lv_spawners, lv_pickedSpawner);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:1777
if ((gv_timeOfDay == ge_PRESET_TimeOfDay_Night) && (UnitGroupCount(lv_spawners, c_unitCountAlive) > 0)) {
libNtve_gf_CreateUnitsAtPoint2(1, "InfestedCivilian", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lv_pickedSpawner));
AISetUnitSuicide(UnitLastCreated(), true);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1812
if (auto7D21AEAB_var == null) { break; }
UnitGroupRemove(gv_terrorFleetGroup, auto7D21AEAB_var);
AISetUnitSuicide(auto7D21AEAB_var, true);
}
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:315
UnitIssueOrder(UnitLastCreated(), Order(AbilityCommand("BurrowInfestedCivilianUp", 0)), c_orderQueueReplace);
AISetUnitScriptControlled(UnitLastCreated(), false);
AISetUnitSuicide(UnitLastCreated(), true);
}
auto4F8FA54E_n = lp_marine;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:323
UnitIssueOrder(UnitLastCreated(), Order(AbilityCommand("BurrowInfestedTerranCampaignUp", 0)), c_orderQueueReplace);
AISetUnitScriptControlled(UnitLastCreated(), false);
AISetUnitSuicide(UnitLastCreated(), true);
}
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:2071
Wait(0.5, c_timeGame);
libNtve_gf_CreateUnitsWithDefaultFacing(1, gv_eggData[lv_eggType].lv_spawnType, 0, gv_eggData[lv_eggType].lv_spawnOwner, lv_eggPosition);
AISetUnitSuicide(UnitLastCreated(), true);
if ((UnitGetType(UnitLastCreated()) == "InfestedAbomination")) {
gf_SetUnitMaxLife(UnitLastCreated(), gv_aberrationLife);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2map — MapScript.galaxy:952
auto55B27610_var = UnitGroupUnitFromEnd(auto55B27610_g, auto55B27610_u);
if (auto55B27610_var == null) { break; }
AISetUnitSuicide(auto55B27610_var, true);
}
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2map — MapScript.galaxy:2750
AIRemoveUnitFromAnyWaves(auto16B0C7AE_var);
if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1) && (UnitGetType(auto16B0C7AE_var) != "Observer")) {
AISetUnitSuicide(auto16B0C7AE_var, true);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:1361
for ( ; ( (auto5F0EABE7_ai >= 0 && lv_i <= auto5F0EABE7_ae) || (auto5F0EABE7_ai < 0 && lv_i >= auto5F0EABE7_ae) ) ; lv_i += auto5F0EABE7_ai ) {
AISetUnitScriptControlled(gv_initialMarines[lv_i], false);
AISetUnitSuicide(gv_initialMarines[lv_i], true);
}
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:1434
for ( ; ( (autoC1760395_ai >= 0 && lv_i <= autoC1760395_ae) || (autoC1760395_ai < 0 && lv_i >= autoC1760395_ae) ) ; lv_i += autoC1760395_ai ) {
AISetUnitScriptControlled(gv_aOEMarines[lv_i], false);
AISetUnitSuicide(gv_aOEMarines[lv_i], true);
}
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:3499
Wait(2.0, c_timeGame);
AISetUnitScriptControlled(lv_chosenTank, false);
AISetUnitSuicide(lv_chosenTank, true);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:326
lv_u = UnitGroupUnitFromEnd(auto689ABB5F_g, auto689ABB5F_u);
if (lv_u == null) { break; }
AISetUnitSuicide(lv_u, true);
UnitGroupRemove(gv_suicidalBullies, lv_u);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:3563
UnitSetOwner(EventUnitProgressUnit(), gv_p3_WARPEDINPROTOSS, true);
AISetUnitSuicide(EventUnitProgressUnit(), true);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:3596
Wait(0.2, c_timeGame);
UnitSetOwner(EventUnitCargo(), gv_p3_WARPEDINPROTOSS, true);
AISetUnitSuicide(EventUnitCargo(), true);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:5398
auto08823487_var = UnitGroupUnitFromEnd(auto08823487_g, auto08823487_u);
if (auto08823487_var == null) { break; }
AISetUnitSuicide(auto08823487_var, true);
}
TriggerExecute(gt_MidMovePlayerUnits, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus04.sc2map — MapScript.galaxy:1326
autoB98C19F2_var = UnitGroupUnitFromEnd(autoB98C19F2_g, autoB98C19F2_u);
if (autoB98C19F2_var == null) { break; }
AISetUnitSuicide(autoB98C19F2_var, true);
}
auto0C23000F_g = UnitGroup(null, gv_pLAYER03_PROTOSS, RegionPlayableMap(), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:4144
if (auto113A4E1E_val == 0) {
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1307));
AISetUnitSuicide(UnitLastCreated(), true);
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1307));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:4147
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1307));
AISetUnitSuicide(UnitLastCreated(), true);
}
else if (auto113A4E1E_val == 1) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:4151
else if (auto113A4E1E_val == 1) {
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1308));
AISetUnitSuicide(UnitLastCreated(), true);
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1308));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:4154
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1308));
AISetUnitSuicide(UnitLastCreated(), true);
}
else if (auto113A4E1E_val == 2) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:4158
else if (auto113A4E1E_val == 2) {
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1304));
AISetUnitSuicide(UnitLastCreated(), true);
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1304));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:4161
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1304));
AISetUnitSuicide(UnitLastCreated(), true);
}
else if (auto113A4E1E_val == 3) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:4165
else if (auto113A4E1E_val == 3) {
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1309));
AISetUnitSuicide(UnitLastCreated(), true);
Wait(2.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1309));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:4168
Wait(2.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1309));
AISetUnitSuicide(UnitLastCreated(), true);
}
else if (auto113A4E1E_val == 4) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:4172
else if (auto113A4E1E_val == 4) {
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1350));
AISetUnitSuicide(UnitLastCreated(), true);
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1350));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:4175
Wait(1.0, c_timeGame);
libNtve_gf_CreateUnitsAtPoint2(1, "ZerglingBurrowed", 0, gv_p07_ZERG_PINK, PointFromId(1350));
AISetUnitSuicide(UnitLastCreated(), true);
}
else if (auto113A4E1E_val == 5) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:1416
if (auto4CDF0813_var == null) { break; }
AISetUnitScriptControlled(auto4CDF0813_var, false);
AISetUnitSuicide(auto4CDF0813_var, true);
UnitGroupRemove(gv_leviathanMutaGroup, auto4CDF0813_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:2763
}
AISetUnitSuicide(EventUnit(), true);
UnitSetTeamColorIndex(EventUnit(), gv_specialUnitColor);
if ((UnitGetType(EventUnit()) == "Mutalisk")) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul04.sc2map — MapScript.galaxy:261
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropEnergyPercent, 100.0);
AISetUnitSuicide(UnitLastCreated(), true);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul04.sc2map — MapScript.galaxy:280
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropEnergyPercent, 100.0);
AISetUnitSuicide(UnitLastCreated(), true);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:2378
else {
AISetUnitScriptControlled(gv_tHE_ONE_GORGON, false);
AISetUnitSuicide(gv_tHE_ONE_GORGON, true);
}
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:2918
UnitGroupRemove(gv_firebats, autoD430C434_var);
AISetUnitScriptControlled(autoD430C434_var, false);
AISetUnitSuicide(autoD430C434_var, true);
}
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:970
VisRevealArea(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_sPAWNED_URSADON), 4.0), 10.0, false);
UnitIssueOrder(lv_sPAWNED_URSADON, OrderTargetingPoint(AbilityCommand("attack", 0), lp_aTTACK_POINT), c_orderQueueReplace);
AISetUnitSuicide(lv_sPAWNED_URSADON, true);
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1662
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Baneling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1670
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Zergling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1678
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Hydralisk", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1689
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Baneling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1694
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Hydralisk", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1701
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Zergling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1750
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Baneling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
Wait(0.1, c_timeAI);
gf_UnloadNydusAnim(UnitFromId(2667));
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1755
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Hydralisk", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
Wait(0.1, c_timeAI);
lv_i = 1;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1762
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Zergling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
Wait(0.1, c_timeAI);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1771
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Zergling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
Wait(0.1, c_timeAI);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:8209
}
AISetUnitSuicide(EventUnitCargo(), true);
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:749
}
else {
AISetUnitSuicide(lv_currentUnit, true);
}
Wait(lp_delay, c_timeAI);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:2093
if (auto207D2F38_var == null) { break; }
AISetUnitScriptControlled(auto207D2F38_var, false);
AISetUnitSuicide(auto207D2F38_var, true);
}
auto3331473C_g = lv_yagdraAttackGroup;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:2101
if (auto3331473C_var == null) { break; }
AISetUnitScriptControlled(auto3331473C_var, false);
AISetUnitSuicide(auto3331473C_var, true);
}
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:4157
if (auto906E5153_var == null) { break; }
AISetUnitScriptControlled(auto906E5153_var, false);
AISetUnitSuicide(auto906E5153_var, true);
}
TriggerExecute(gt_RocksBrokenWaves, true, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2map — MapScript.galaxy:2378
else {
AISetUnitScriptControlled(gv_tHE_ONE_GORGON, false);
AISetUnitSuicide(gv_tHE_ONE_GORGON, true);
}
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2map — MapScript.galaxy:2918
UnitGroupRemove(gv_firebats, autoD430C434_var);
AISetUnitScriptControlled(autoD430C434_var, false);
AISetUnitSuicide(autoD430C434_var, true);
}
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map — MapScript.galaxy:970
VisRevealArea(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_sPAWNED_URSADON), 4.0), 10.0, false);
UnitIssueOrder(lv_sPAWNED_URSADON, OrderTargetingPoint(AbilityCommand("attack", 0), lp_aTTACK_POINT), c_orderQueueReplace);
AISetUnitSuicide(lv_sPAWNED_URSADON, true);
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1662
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Baneling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1670
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Zergling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1678
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Hydralisk", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1689
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Baneling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1694
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Hydralisk", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1701
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Zergling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
gf_UnloadNydusAnim(UnitFromId(2667));
Wait(0.1, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1750
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Baneling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
Wait(0.1, c_timeAI);
gf_UnloadNydusAnim(UnitFromId(2667));
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1755
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Hydralisk", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
Wait(0.1, c_timeAI);
lv_i = 1;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1762
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Zergling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
Wait(0.1, c_timeAI);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1771
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Zergling", 0, gv_pLAYER_08_IZSHA, RegionRandomPoint(RegionFromId(6)));
UnitGroupAdd(gv_zagaraReinforcements, UnitLastCreated());
AISetUnitSuicide(UnitLastCreated(), true);
Wait(0.1, c_timeAI);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:8209
}
AISetUnitSuicide(EventUnitCargo(), true);
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:749
}
else {
AISetUnitSuicide(lv_currentUnit, true);
}
Wait(lp_delay, c_timeAI);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:2093
if (auto207D2F38_var == null) { break; }
AISetUnitScriptControlled(auto207D2F38_var, false);
AISetUnitSuicide(auto207D2F38_var, true);
}
auto3331473C_g = lv_yagdraAttackGroup;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:2101
if (auto3331473C_var == null) { break; }
AISetUnitScriptControlled(auto3331473C_var, false);
AISetUnitSuicide(auto3331473C_var, true);
}
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:4157
if (auto906E5153_var == null) { break; }
AISetUnitScriptControlled(auto906E5153_var, false);
AISetUnitSuicide(auto906E5153_var, true);
}
TriggerExecute(gt_RocksBrokenWaves, true, false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:3139
auto4214D0B6_var = UnitGroupUnitFromEnd(auto4214D0B6_g, auto4214D0B6_u);
if (auto4214D0B6_var == null) { break; }
AISetUnitSuicide(auto4214D0B6_var, true);
}
return true;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:3270
autoE6E44E2D_var = UnitGroupUnitFromEnd(autoE6E44E2D_g, autoE6E44E2D_u);
if (autoE6E44E2D_var == null) { break; }
AISetUnitSuicide(autoE6E44E2D_var, true);
}
return true;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:3320
auto98980587_var = UnitGroupUnitFromEnd(auto98980587_g, auto98980587_u);
if (auto98980587_var == null) { break; }
AISetUnitSuicide(auto98980587_var, true);
}
return true;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:5524
Wait(1.0, c_timeAI);
}
AISetUnitSuicide(EventUnitProgressUnit(), true);
}