# Add Unit To Control Group
Grammar — Add unit to control group controlGroup|Group Number for player player
Flags —Native
|Action
Adds a unit to a control group for a player.
# Arguments
int
— Playerint
— Control Groupunit
— Unit
Returns — void
native void UnitControlGroupAddUnit(
int inPlayer,
int inGroup,
unit inUnit,
);
# Related
Category: Selection / Control Groups
- Control Group Units —
unitgroup
— UnitControlGroup - Copy Unit Control Groups —
void
— libNtve_gf_CopyUnitControlGroups - Add Unit To Control Group —
void
— UnitControlGroupAddUnit - Add Unit Group To Control Group —
void
— UnitControlGroupAddUnits - Remove Unit From Control Group —
void
— UnitControlGroupRemoveUnit - Remove Unit Group From Control Group —
void
— UnitControlGroupRemoveUnits - Clear Control Group —
void
— UnitControlGroupClear
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:918
gv_tHEONESTETMAN = UnitLastCreated();
gv_tHEONEBROODMOTHER = UnitFromId(2318);
UnitControlGroupAddUnit(gv_p1_USER, 1, gv_tHEONERAYNOR);
UnitControlGroupAddUnit(gv_p1_USER, 2, gv_tHEONETYCHUS);
UnitControlGroupAddUnit(gv_p1_USER, 3, gv_tHEONESWANN);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:919
gv_tHEONEBROODMOTHER = UnitFromId(2318);
UnitControlGroupAddUnit(gv_p1_USER, 1, gv_tHEONERAYNOR);
UnitControlGroupAddUnit(gv_p1_USER, 2, gv_tHEONETYCHUS);
UnitControlGroupAddUnit(gv_p1_USER, 3, gv_tHEONESWANN);
UnitControlGroupAddUnit(gv_p1_USER, 4, gv_tHEONESTETMAN);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:920
UnitControlGroupAddUnit(gv_p1_USER, 1, gv_tHEONERAYNOR);
UnitControlGroupAddUnit(gv_p1_USER, 2, gv_tHEONETYCHUS);
UnitControlGroupAddUnit(gv_p1_USER, 3, gv_tHEONESWANN);
UnitControlGroupAddUnit(gv_p1_USER, 4, gv_tHEONESTETMAN);
UnitGroupSelect(UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), gv_p1_USER, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:921
UnitControlGroupAddUnit(gv_p1_USER, 2, gv_tHEONETYCHUS);
UnitControlGroupAddUnit(gv_p1_USER, 3, gv_tHEONESWANN);
UnitControlGroupAddUnit(gv_p1_USER, 4, gv_tHEONESTETMAN);
UnitGroupSelect(UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), gv_p1_USER, true);
UnitBehaviorRemove(UnitFromId(354), "RaynorRadar", 1);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:918
gv_tHEONESTETMAN = UnitLastCreated();
gv_tHEONEBROODMOTHER = UnitFromId(2318);
UnitControlGroupAddUnit(gv_p1_USER, 1, gv_tHEONERAYNOR);
UnitControlGroupAddUnit(gv_p1_USER, 2, gv_tHEONETYCHUS);
UnitControlGroupAddUnit(gv_p1_USER, 3, gv_tHEONESWANN);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:919
gv_tHEONEBROODMOTHER = UnitFromId(2318);
UnitControlGroupAddUnit(gv_p1_USER, 1, gv_tHEONERAYNOR);
UnitControlGroupAddUnit(gv_p1_USER, 2, gv_tHEONETYCHUS);
UnitControlGroupAddUnit(gv_p1_USER, 3, gv_tHEONESWANN);
UnitControlGroupAddUnit(gv_p1_USER, 4, gv_tHEONESTETMAN);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:920
UnitControlGroupAddUnit(gv_p1_USER, 1, gv_tHEONERAYNOR);
UnitControlGroupAddUnit(gv_p1_USER, 2, gv_tHEONETYCHUS);
UnitControlGroupAddUnit(gv_p1_USER, 3, gv_tHEONESWANN);
UnitControlGroupAddUnit(gv_p1_USER, 4, gv_tHEONESTETMAN);
UnitGroupSelect(UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), gv_p1_USER, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:921
UnitControlGroupAddUnit(gv_p1_USER, 2, gv_tHEONETYCHUS);
UnitControlGroupAddUnit(gv_p1_USER, 3, gv_tHEONESWANN);
UnitControlGroupAddUnit(gv_p1_USER, 4, gv_tHEONESTETMAN);
UnitGroupSelect(UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), gv_p1_USER, true);
UnitBehaviorRemove(UnitFromId(354), "RaynorRadar", 1);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:8854
SoundStop(gv_introDeathSound, true);
UnitSelect(gv_tHE_ONE_QUEEN, gv_pLAYER_01_USER, true);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_tHE_ONE_QUEEN);
if ((gv_cinematicCompleted == true)) {
lv_fadeDuration = 1.5;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:1160
libSwaC_gf_SetHeroPanelUnit(2, UnitLastCreated());
libSCDH_gf_CreateHeroPing(gv_dEHAKA, libSCDH_ge_HeroPingType_Ally);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 2, gv_dEHAKA);
gv_powerLinkGroup = UnitGroup(gv_powerLinkType, gv_pLAYER_02_DOMINION, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto5EA409F1_g = gv_powerLinkGroup;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:1058
UnitStatusBarOverride(gv_kerrigan2, c_unitStatusGroupAll);
UnitSetOwner(gv_kerrigan2, gv_pLAYER_02_DOMINION222, true);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_kerrigan);
auto4551E5DF_g = UnitGroup("Medic", gv_pLAYER_02_DOMINION2, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto4551E5DF_u = UnitGroupCount(auto4551E5DF_g, c_unitCountAll);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:6361
UnitIssueOrder(gv_hyperion, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
UnitSelect(gv_hyperion, gv_pLAYER_01_USER, true);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_hyperion);
gf_CreateHyperionMinimapIcon();
CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:1664
UnitSelect(gv_kerrigan, gv_p01_USER, true);
UnitControlGroupAddUnit(gv_p01_USER, 1, gv_kerrigan);
Wait(2.0, c_timeReal);
TriggerQueueEnter();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:1894
gv_kerrigan = UnitLastCreated();
libSwaC_gf_SetHeroPanelUnit(1, UnitLastCreated());
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_kerrigan);
UnitAbilityShow(gv_kerrigan, "PrimalSlash", false);
UnitAbilityShow(gv_kerrigan, "PsiStrikeWalk", false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map — MapScript.galaxy:8854
SoundStop(gv_introDeathSound, true);
UnitSelect(gv_tHE_ONE_QUEEN, gv_pLAYER_01_USER, true);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_tHE_ONE_QUEEN);
if ((gv_cinematicCompleted == true)) {
lv_fadeDuration = 1.5;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map — MapScript.galaxy:1160
libSwaC_gf_SetHeroPanelUnit(2, UnitLastCreated());
libSCDH_gf_CreateHeroPing(gv_dEHAKA, libSCDH_ge_HeroPingType_Ally);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 2, gv_dEHAKA);
gv_powerLinkGroup = UnitGroup(gv_powerLinkType, gv_pLAYER_02_DOMINION, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto5EA409F1_g = gv_powerLinkGroup;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:1058
UnitStatusBarOverride(gv_kerrigan2, c_unitStatusGroupAll);
UnitSetOwner(gv_kerrigan2, gv_pLAYER_02_DOMINION222, true);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_kerrigan);
auto4551E5DF_g = UnitGroup("Medic", gv_pLAYER_02_DOMINION2, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto4551E5DF_u = UnitGroupCount(auto4551E5DF_g, c_unitCountAll);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:6361
UnitIssueOrder(gv_hyperion, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
UnitSelect(gv_hyperion, gv_pLAYER_01_USER, true);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_hyperion);
gf_CreateHyperionMinimapIcon();
CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2map — MapScript.galaxy:1664
UnitSelect(gv_kerrigan, gv_p01_USER, true);
UnitControlGroupAddUnit(gv_p01_USER, 1, gv_kerrigan);
Wait(2.0, c_timeReal);
TriggerQueueEnter();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:1894
gv_kerrigan = UnitLastCreated();
libSwaC_gf_SetHeroPanelUnit(1, UnitLastCreated());
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_kerrigan);
UnitAbilityShow(gv_kerrigan, "PrimalSlash", false);
UnitAbilityShow(gv_kerrigan, "PsiStrikeWalk", false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:8256
UnitSelect(gv_aRTANIS, gv_pLAYER_01_USER, true);
UnitSelect(gv_kERRIGAN, gv_pLAYER_01_USER, true);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_aRTANIS);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 2, gv_kERRIGAN);
TriggerExecute(gt_StartAI, true, false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:8257
UnitSelect(gv_kERRIGAN, gv_pLAYER_01_USER, true);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_aRTANIS);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 2, gv_kERRIGAN);
TriggerExecute(gt_StartAI, true, false);
Wait(0.5, c_timeReal);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:1604
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/4427C835"), null, UnitGetPosition(gv_kERRIGAN));
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_kERRIGAN);
libVCUI_gf_SetHeroPanelUnit(1, gv_kERRIGAN);
TriggerEnable(gt_S1_KerriganSelected, true);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2map — MapScript.galaxy:8256
UnitSelect(gv_aRTANIS, gv_pLAYER_01_USER, true);
UnitSelect(gv_kERRIGAN, gv_pLAYER_01_USER, true);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_aRTANIS);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 2, gv_kERRIGAN);
TriggerExecute(gt_StartAI, true, false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2map — MapScript.galaxy:8257
UnitSelect(gv_kERRIGAN, gv_pLAYER_01_USER, true);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_aRTANIS);
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 2, gv_kERRIGAN);
TriggerExecute(gt_StartAI, true, false);
Wait(0.5, c_timeReal);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:1604
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/4427C835"), null, UnitGetPosition(gv_kERRIGAN));
UnitControlGroupAddUnit(gv_pLAYER_01_USER, 1, gv_kERRIGAN);
libVCUI_gf_SetHeroPanelUnit(1, gv_kERRIGAN);
TriggerEnable(gt_S1_KerriganSelected, true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1865
UnitControlGroupClear(lv_lVPlayer, 3);
UnitControlGroupAddUnit(lv_lVPlayer, 3, lp_viking);
UnitControlGroupRemoveUnit(lv_lVPlayer, 4, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone);
if ((PlayerHasTalent(lv_lVPlayer, "LostVikingsMasterySpyGames") == true)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1885
UnitControlGroupClear(lv_lVPlayer, 2);
UnitControlGroupAddUnit(lv_lVPlayer, 2, lp_viking);
UnitControlGroupRemoveUnit(lv_lVPlayer, 4, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone);
UnitCreateEffectUnit(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone, "LostVikingsGravestoneCopyOrders", libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleog);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1901
UnitControlGroupClear(lv_lVPlayer, 1);
UnitControlGroupAddUnit(lv_lVPlayer, 1, lp_viking);
UnitControlGroupRemoveUnit(lv_lVPlayer, 4, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_olafGravestone);
UnitCreateEffectUnit(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_olafGravestone, "LostVikingsGravestoneCopyOrders", libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_olaf);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13033
UnitGroupAdd(libGame_gv_players[lv_lVPlayer].lv_heroUnitGroup, UnitLastCreated());
AIAddPlayerUnit(UnitLastCreated());
UnitControlGroupAddUnit(lv_lVPlayer, 1, UnitLastCreated());
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[lv_lVPlayer], UnitLastCreated());
PathSetVisible(PathLastCreated(), c_pathLocationWorld, false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13047
UnitGroupAdd(libGame_gv_players[lv_lVPlayer].lv_heroUnitGroup, UnitLastCreated());
AIAddPlayerUnit(UnitLastCreated());
UnitControlGroupAddUnit(lv_lVPlayer, 2, UnitLastCreated());
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[lv_lVPlayer], UnitLastCreated());
PathSetVisible(PathLastCreated(), c_pathLocationWorld, false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13061
UnitGroupAdd(libGame_gv_players[lv_lVPlayer].lv_heroUnitGroup, UnitLastCreated());
AIAddPlayerUnit(UnitLastCreated());
UnitControlGroupAddUnit(lv_lVPlayer, 3, UnitLastCreated());
UnitControlGroupAddUnits(lv_lVPlayer, 4, libGame_gv_players[lv_lVPlayer].lv_heroUnitGroup);
UnitControlGroupRemoveUnit(lv_lVPlayer, 4, libGame_gv_players[lv_lVPlayer].lv_heroUnit);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13205
libNtve_gf_CreateUnitsAtPoint2(1, "EriksGravestone", 0, lv_lVPlayer, PointWithOffsetPolar(libGame_gv_players[lv_lVPlayer].lv_spawnPoint, 1.5, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_respawnPolarOffset), lv_deadUnit);
libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone = UnitLastCreated();
UnitControlGroupAddUnit(lv_lVPlayer, 3, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone);
UnitControlGroupAddUnit(lv_lVPlayer, 4, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone);
libGDHL_gf_VikingDownGiveCarryBehaviorsToGravestone(lv_deadUnit, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13206
libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone = UnitLastCreated();
UnitControlGroupAddUnit(lv_lVPlayer, 3, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone);
UnitControlGroupAddUnit(lv_lVPlayer, 4, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone);
libGDHL_gf_VikingDownGiveCarryBehaviorsToGravestone(lv_deadUnit, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13215
libNtve_gf_CreateUnitsAtPoint2(1, "BaleogsGravestone", 0, lv_lVPlayer, PointWithOffsetPolar(libGame_gv_players[lv_lVPlayer].lv_spawnPoint, 1.5, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_respawnPolarOffset), lv_deadUnit);
libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone = UnitLastCreated();
UnitControlGroupAddUnit(lv_lVPlayer, 2, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone);
UnitControlGroupAddUnit(lv_lVPlayer, 4, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone);
libGDHL_gf_VikingDownGiveCarryBehaviorsToGravestone(lv_deadUnit, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13216
libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone = UnitLastCreated();
UnitControlGroupAddUnit(lv_lVPlayer, 2, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone);
UnitControlGroupAddUnit(lv_lVPlayer, 4, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone);
libGDHL_gf_VikingDownGiveCarryBehaviorsToGravestone(lv_deadUnit, libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12224
lv_controlGroup = 3;
}
UnitControlGroupAddUnit(lp_player, lv_controlGroup, lp_vehicle);
UnitControlGroupAddUnit(lp_player, 4, lp_vehicle);
UnitControlGroupRemoveUnit(lp_player, lv_controlGroup, lp_hero);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12225
}
UnitControlGroupAddUnit(lp_player, lv_controlGroup, lp_vehicle);
UnitControlGroupAddUnit(lp_player, 4, lp_vehicle);
UnitControlGroupRemoveUnit(lp_player, lv_controlGroup, lp_hero);
UnitControlGroupRemoveUnit(lp_player, 4, lp_hero);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12247
lv_controlGroup = 3;
}
UnitControlGroupAddUnit(lp_player, lv_controlGroup, lp_hero);
UnitControlGroupAddUnit(lp_player, 4, lp_hero);
UnitControlGroupRemoveUnit(lp_player, lv_controlGroup, lp_vehicle);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12248
}
UnitControlGroupAddUnit(lp_player, lv_controlGroup, lp_hero);
UnitControlGroupAddUnit(lp_player, 4, lp_hero);
UnitControlGroupRemoveUnit(lp_player, lv_controlGroup, lp_vehicle);
UnitControlGroupRemoveUnit(lp_player, 4, lp_vehicle);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12272
lv_controlGroup = 3;
}
UnitControlGroupAddUnit(lp_player, lv_controlGroup, lp_newVehicle);
UnitControlGroupAddUnit(lp_player, 4, lp_newVehicle);
UnitControlGroupRemoveUnit(lp_player, lv_controlGroup, lp_originVehicle);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12273
}
UnitControlGroupAddUnit(lp_player, lv_controlGroup, lp_newVehicle);
UnitControlGroupAddUnit(lp_player, 4, lp_newVehicle);
UnitControlGroupRemoveUnit(lp_player, lv_controlGroup, lp_originVehicle);
UnitControlGroupRemoveUnit(lp_player, 4, lp_originVehicle);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12281
// Automatic Variable Declarations
// Implementation
UnitControlGroupAddUnit(lp_player, 1, lp_vehicle);
UnitControlGroupAddUnit(lp_player, 4, lp_vehicle);
UnitControlGroupRemoveUnit(lp_player, 1, lp_hero);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12282
// Implementation
UnitControlGroupAddUnit(lp_player, 1, lp_vehicle);
UnitControlGroupAddUnit(lp_player, 4, lp_vehicle);
UnitControlGroupRemoveUnit(lp_player, 1, lp_hero);
UnitControlGroupRemoveUnit(lp_player, 4, lp_hero);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12292
// Implementation
UnitBehaviorRemove(lp_vehicle, "SamuroIllusionMasterToggleAIBehaviorAbil", 1);
UnitControlGroupAddUnit(lp_player, 1, lp_hero);
UnitControlGroupAddUnit(lp_player, 4, lp_hero);
UnitControlGroupRemoveUnit(lp_player, 1, lp_vehicle);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12293
UnitBehaviorRemove(lp_vehicle, "SamuroIllusionMasterToggleAIBehaviorAbil", 1);
UnitControlGroupAddUnit(lp_player, 1, lp_hero);
UnitControlGroupAddUnit(lp_player, 4, lp_hero);
UnitControlGroupRemoveUnit(lp_player, 1, lp_vehicle);
UnitControlGroupRemoveUnit(lp_player, 4, lp_vehicle);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:225
lv_samuroPlayer = UnitGetOwner(lp_CreatedUnit);
lv_samuro = lp_CreatedUnit;
UnitControlGroupAddUnit(lv_samuroPlayer, 1, lv_samuro);
UnitControlGroupAddUnit(lv_samuroPlayer, 4, lv_samuro);
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_samuroPlayer), c_localSelectionTypeUnknown, true);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:226
lv_samuro = lp_CreatedUnit;
UnitControlGroupAddUnit(lv_samuroPlayer, 1, lv_samuro);
UnitControlGroupAddUnit(lv_samuroPlayer, 4, lv_samuro);
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_samuroPlayer), c_localSelectionTypeUnknown, true);
UISetDragSelectEnabled(PlayerGroupSingle(lv_samuroPlayer), true);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:641
else {
}
UnitControlGroupAddUnit(lv_samuroPlayer, lv_controlGroup, lv_fakeSelectionVehicle);
UnitControlGroupRemoveUnit(lv_samuroPlayer, lv_controlGroup, lv_samuroCargoUnit);
UnitControlGroupRemoveUnit(lv_samuroPlayer, 4, lv_samuroCargoUnit);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:644
UnitControlGroupRemoveUnit(lv_samuroPlayer, lv_controlGroup, lv_samuroCargoUnit);
UnitControlGroupRemoveUnit(lv_samuroPlayer, 4, lv_samuroCargoUnit);
UnitControlGroupAddUnit(lv_samuroPlayer, 4, lv_fakeSelectionVehicle);
while ((libNtve_gf_UnitIsInsideTransport(lv_samuroCargoUnit) == true)) {
UnitSetPosition(lv_fakeSelectionVehicle, UnitGetPosition(libGame_gf_HeroEnteredTransportTransport()), true);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:652
UnitSelect(lv_fakeSelectionVehicle, lv_samuroPlayer, false);
UnitControlGroupRemoveUnit(lv_samuroPlayer, lv_controlGroup, lv_fakeSelectionVehicle);
UnitControlGroupAddUnit(lv_samuroPlayer, lv_controlGroup, lv_samuroCargoUnit);
UnitControlGroupAddUnit(lv_samuroPlayer, 4, lv_samuroCargoUnit);
UnitControlGroupRemoveUnit(lv_samuroPlayer, 4, lv_fakeSelectionVehicle);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:653
UnitControlGroupRemoveUnit(lv_samuroPlayer, lv_controlGroup, lv_fakeSelectionVehicle);
UnitControlGroupAddUnit(lv_samuroPlayer, lv_controlGroup, lv_samuroCargoUnit);
UnitControlGroupAddUnit(lv_samuroPlayer, 4, lv_samuroCargoUnit);
UnitControlGroupRemoveUnit(lv_samuroPlayer, 4, lv_fakeSelectionVehicle);
UnitRemove(lv_fakeSelectionVehicle);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:1047
if ((PlayerHasTalent(lv_samuroPlayer, "SamuroHeroicAbilityIllusionMaster") == true)) {
UnitControlGroupAddUnit(lv_samuroPlayer, 4, lv_mirrorImage);
if ((UnitGroupCount(libHSAM_gv_mirrorImageUnitGroup2[lv_samuroPlayer], c_unitCountAlive) > 0)) {
UnitGroupAdd(libHSAM_gv_mirrorImageUnitGroup3[lv_samuroPlayer], lv_mirrorImage);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:1050
if ((UnitGroupCount(libHSAM_gv_mirrorImageUnitGroup2[lv_samuroPlayer], c_unitCountAlive) > 0)) {
UnitGroupAdd(libHSAM_gv_mirrorImageUnitGroup3[lv_samuroPlayer], lv_mirrorImage);
UnitControlGroupAddUnit(lv_samuroPlayer, 3, lv_mirrorImage);
libNtve_gf_SendActorMessageToUnit(lv_mirrorImage, "SetUnitIcon Assets\\Textures\\storm_ui_icon_samuro_selectmirror2.dds");
}
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:1055
else {
UnitGroupAdd(libHSAM_gv_mirrorImageUnitGroup2[lv_samuroPlayer], lv_mirrorImage);
UnitControlGroupAddUnit(lv_samuroPlayer, 2, lv_mirrorImage);
}
}
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:1868
UnitGroupAdd(libHSAM_gv_mirrorImageUnitGroup3[lv_samuroPlayer], UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup[lv_samuroPlayer], 2));
if ((libGame_gv_players[lv_samuroPlayer].lv_activeVehicle == null)) {
UnitControlGroupAddUnit(libGame_gf_HeroGainTalentPlayer(), 1, libGame_gv_players[lv_samuroPlayer].lv_heroUnit);
UnitControlGroupAddUnit(libGame_gf_HeroGainTalentPlayer(), 4, libGame_gv_players[lv_samuroPlayer].lv_heroUnit);
}