# Unit Is Selected
Grammar — unit is selected by player player
Flags —Native
|Function
Returns true if the specified unit is selected by the specified player.
# Arguments
unit
— Unitint
— Player
Returns — bool
native bool UnitIsSelected(unit inUnit, int inPlayer);
# Related
Category: Selection / Unit Selection
- Subgroup Index —
int
— UnitSubgroupIndexSelected - Selected Subgroup Units —
unitgroup
— UnitSubgroupSelected - Select/Deselect Unit —
void
— UnitSelect - Select Next Subgroup —
void
— UnitSubgroupIndexNext - Select Previous Subgroup —
void
— UnitSubgroupIndexPrevious - Select/Deselect Unit Group —
void
— UnitGroupSelect - Clear Unit Selection —
void
— UnitClearSelection - Unit Is Selected —
bool
— UnitIsSelected - Unit Type Is Selected —
bool
— libNtve_gf_UnitTypeIsSelected - Selected Units —
unitgroup
— UnitGroupSelected - Unit Is Selected —
void
— TriggerAddEventUnitSelected - Store Unit Selection —
void
— libNtve_gf_StoreUnitSelection - Restore Unit Selection —
void
— libNtve_gf_RestoreUnitSelection - Flash Unit Selection —
void
— UnitFlashSelection
# Examples
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:1386
UISetButtonHighlighted(PlayerGroupSingle(gv_pLAYER_01_USER), AbilityCommand("QueenBuild", 0), true);
UISetButtonHighlighted(PlayerGroupSingle(gv_pLAYER_01_USER), AbilityCommand("CreepTumorBuild", 0), true);
if ((UnitIsSelected(UnitFromId(54), gv_pLAYER_01_USER) == false)) {
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergMainObjective, libSwaC_ge_CampaginReticleSize_Small, StringExternal("Param/Value/4F661D1F"), lv_tUMOR, "Ref_Origin");
gv_helper_L2Tumor = libNtve_gf_ActorLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:1400
}
gf_RevealNest(1);
while (!(((gv_scourgeNestStarted == true) || (UnitIsSelected(lv_tUMOR, gv_pLAYER_01_USER) == true) || (UnitIsAlive(lv_tUMOR) == false)))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:2969
SoundPlayAtPoint(SoundLink("Event_Lab01_DronesEmerge", -1), PlayerGroupAll(), PointFromId(2), 0.0, 100.0, 0.0);
libNtve_gf_ShowHideUnit(UnitFromId(973), false);
if ((UnitIsSelected(gv_extraDroneUnit01, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit01 = UnitLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:2981
}
if ((UnitIsSelected(gv_extraDroneUnit02, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit02 = UnitLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:2993
}
if ((UnitIsSelected(gv_extraDroneUnit03, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit03 = UnitLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:3005
}
if ((UnitIsSelected(gv_extraDroneUnit04, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit04 = UnitLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:3017
}
if ((UnitIsSelected(gv_extraDroneUnit05, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit05 = UnitLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:3029
}
if ((UnitIsSelected(gv_extraDroneUnit06, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit06 = UnitLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:3478
}
if (((UnitIsSelected(gv_firstHatchery, gv_pLAYER_01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true))) {
gv_hatcherySelected = true;
if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true)) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2map — MapScript.galaxy:1386
UISetButtonHighlighted(PlayerGroupSingle(gv_pLAYER_01_USER), AbilityCommand("QueenBuild", 0), true);
UISetButtonHighlighted(PlayerGroupSingle(gv_pLAYER_01_USER), AbilityCommand("CreepTumorBuild", 0), true);
if ((UnitIsSelected(UnitFromId(54), gv_pLAYER_01_USER) == false)) {
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergMainObjective, libSwaC_ge_CampaginReticleSize_Small, StringExternal("Param/Value/4F661D1F"), lv_tUMOR, "Ref_Origin");
gv_helper_L2Tumor = libNtve_gf_ActorLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2map — MapScript.galaxy:1400
}
gf_RevealNest(1);
while (!(((gv_scourgeNestStarted == true) || (UnitIsSelected(lv_tUMOR, gv_pLAYER_01_USER) == true) || (UnitIsAlive(lv_tUMOR) == false)))) {
Wait(0.25, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:2969
SoundPlayAtPoint(SoundLink("Event_Lab01_DronesEmerge", -1), PlayerGroupAll(), PointFromId(2), 0.0, 100.0, 0.0);
libNtve_gf_ShowHideUnit(UnitFromId(973), false);
if ((UnitIsSelected(gv_extraDroneUnit01, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit01 = UnitLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:2981
}
if ((UnitIsSelected(gv_extraDroneUnit02, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit02 = UnitLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:2993
}
if ((UnitIsSelected(gv_extraDroneUnit03, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit03 = UnitLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:3005
}
if ((UnitIsSelected(gv_extraDroneUnit04, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit04 = UnitLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:3017
}
if ((UnitIsSelected(gv_extraDroneUnit05, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit05 = UnitLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:3029
}
if ((UnitIsSelected(gv_extraDroneUnit06, gv_pLAYER_01_USER) == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Drone", 0, gv_pLAYER_02_DOMINION2, PointFromId(108));
gv_extraDroneUnit06 = UnitLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:3478
}
if (((UnitIsSelected(gv_firstHatchery, gv_pLAYER_01_USER) == true) || (libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true))) {
gv_hatcherySelected = true;
if ((libNtve_gf_UnitTypeIsSelected("Larva", gv_pLAYER_01_USER) == true)) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3892
TriggerQueueEnter();
if ((UnitIsSelected(gv_basic01Marine, gv_p01_USER) == true)) {
TriggerExecute(gt_BasicSelectMarineComplete, true, false);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:4000
}
if (!((UnitIsSelected(gv_basic01Marine, gv_p01_USER) == true))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:6439
}
if ((UnitIsSelected(gv_terranCommandCenter, gv_p01_USER) == true)) {
if ((gv_terranMakeSCVsCCSelected == false)) {
gv_terranMakeSCVsCCSelected = true;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:7628
}
if (((UnitIsSelected(gv_terranCommandCenter, gv_p01_USER) == true) || ((UnitGroupCount(UnitGroup("SCV", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0), c_unitCountAlive) + UnitQueueGetProperty(gv_terranCommandCenter, c_unitQueuePropertyUsed)) >= 12))) {
gf_ClearAllTutorialReticles();
gf_DestroyTutorialTextTag();
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:8933
UnitGroupLoopBegin(UnitGroup("Marine", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == true)) {
gf_ClearTutorialReticleOnUnit(UnitGroupLoopCurrent());
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:9345
UnitGroupLoopBegin(lv_currentMarineGroup);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == true)) {
gf_ClearTutorialReticleOnUnit(UnitGroupLoopCurrent());
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:14253
UnitGroupLoopBegin(UnitGroup(null, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((gf_UnitIsArmyUnit(UnitGroupLoopCurrent()) == true) && (UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == false)) {
lv_armySelected = false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:14688
UnitGroupLoopBegin(UnitGroup(null, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((gf_UnitIsArmyUnit(UnitGroupLoopCurrent()) == true) && (UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == false)) {
lv_armySelected = false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:15136
UnitGroupLoopBegin(UnitGroup(null, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((gf_UnitIsArmyUnit(UnitGroupLoopCurrent()) == true) && (UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == false)) {
lv_armySelected = false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:17572
UnitGroupLoopBegin(gv_protossGateways);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == false) && (UnitQueueItemTypeCheck(UnitGroupLoopCurrent(), 1, c_unitProgressTypeTrain) == false)) {
UnitGroupAdd(lv_gatewaysWaiting, UnitGroupLoopCurrent());
gf_CreateTutorialReticleOnUnit(UnitGroupLoopCurrent(), 1.0, libVCMI_ge_CampaginReticleSize_Medium, "Ref_Target 07");
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:2537
if (autoC14B2B93_var == null) { break; }
if ((gf_UnitIsArmyUnit(autoC14B2B93_var) == true)) {
if ((UnitIsSelected(autoC14B2B93_var, gv_pLAYER_01_USER) == false)) {
lv_armyNotSelected = true;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:1605
TriggerEnable(TriggerGetCurrent(), false);
if ((UnitIsSelected(gv_alarak, gv_pLAYER_01_USER) == true) && (libNtve_gf_UnitInRegion(gv_alarak, RegionFromId(22)) == true) && (RegionContainsPoint(RegionFromId(22), CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
CameraLockInput(gv_pLAYER_01_USER, true);
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoDefault(), 2.0, -1, 10.0, false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:4498
TriggerEnable(TriggerGetCurrent(), false);
if ((UnitIsSelected(gv_karax, gv_pLAYER_01_USER) == true) && (libNtve_gf_UnitInRegion(gv_karax, RegionFromId(103)) == true) && (RegionContainsPoint(RegionFromId(103), CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
CameraLockInput(gv_pLAYER_01_USER, true);
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoDefault(), 2.0, -1, 10.0, false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:1633
TriggerExecute(gt_ObjectiveDestroyVoidForcesCreate, true, false);
TriggerExecute(gt_ObjectiveKerriganMustSurviveCreate, true, true);
if ((UnitIsSelected(gv_kERRIGAN, gv_pLAYER_01_USER) == false)) {
libVCMI_gf_AttachReticleEffectAndTextTagOnUnit(libVCMI_ge_CampaginReticleType_ZergMainObjective, libVCMI_ge_CampaginReticleSize_Medium, StringExternal("Param/Value/8EFFCA6B"), gv_kERRIGAN, "Ref_Head");
libHots_gf_StoreActorForUnit(gv_kERRIGAN, 1, libNtve_gf_ActorLastCreated());
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:2932
}
if (!((UnitIsSelected(gv_kERRIGAN, gv_pLAYER_01_USER) == false))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:701
UnitBehaviorRemove(gv_voidCrystals[lp_index].lv_unit, "InfiniteCrystalisRepulsorBehavior", 1);
gf_CreateVoidCrystalShieldEffect(lp_index);
if ((UnitIsSelected(gv_voidCrystals[lp_index].lv_unit, gv_pLAYER_01_USER) == true)) {
UnitSelect(gv_voidCrystals[lp_index].lv_unit, gv_pLAYER_01_USER, false);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3892
TriggerQueueEnter();
if ((UnitIsSelected(gv_basic01Marine, gv_p01_USER) == true)) {
TriggerExecute(gt_BasicSelectMarineComplete, true, false);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:4000
}
if (!((UnitIsSelected(gv_basic01Marine, gv_p01_USER) == true))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:6439
}
if ((UnitIsSelected(gv_terranCommandCenter, gv_p01_USER) == true)) {
if ((gv_terranMakeSCVsCCSelected == false)) {
gv_terranMakeSCVsCCSelected = true;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:7628
}
if (((UnitIsSelected(gv_terranCommandCenter, gv_p01_USER) == true) || ((UnitGroupCount(UnitGroup("SCV", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0), c_unitCountAlive) + UnitQueueGetProperty(gv_terranCommandCenter, c_unitQueuePropertyUsed)) >= 12))) {
gf_ClearAllTutorialReticles();
gf_DestroyTutorialTextTag();
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:8933
UnitGroupLoopBegin(UnitGroup("Marine", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == true)) {
gf_ClearTutorialReticleOnUnit(UnitGroupLoopCurrent());
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:9345
UnitGroupLoopBegin(lv_currentMarineGroup);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == true)) {
gf_ClearTutorialReticleOnUnit(UnitGroupLoopCurrent());
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:14253
UnitGroupLoopBegin(UnitGroup(null, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((gf_UnitIsArmyUnit(UnitGroupLoopCurrent()) == true) && (UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == false)) {
lv_armySelected = false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:14688
UnitGroupLoopBegin(UnitGroup(null, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((gf_UnitIsArmyUnit(UnitGroupLoopCurrent()) == true) && (UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == false)) {
lv_armySelected = false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:15136
UnitGroupLoopBegin(UnitGroup(null, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((gf_UnitIsArmyUnit(UnitGroupLoopCurrent()) == true) && (UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == false)) {
lv_armySelected = false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:17572
UnitGroupLoopBegin(gv_protossGateways);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((UnitIsSelected(UnitGroupLoopCurrent(), gv_p01_USER) == false) && (UnitQueueItemTypeCheck(UnitGroupLoopCurrent(), 1, c_unitProgressTypeTrain) == false)) {
UnitGroupAdd(lv_gatewaysWaiting, UnitGroupLoopCurrent());
gf_CreateTutorialReticleOnUnit(UnitGroupLoopCurrent(), 1.0, libVCMI_ge_CampaginReticleSize_Medium, "Ref_Target 07");
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:2537
if (autoC14B2B93_var == null) { break; }
if ((gf_UnitIsArmyUnit(autoC14B2B93_var) == true)) {
if ((UnitIsSelected(autoC14B2B93_var, gv_pLAYER_01_USER) == false)) {
lv_armyNotSelected = true;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:1605
TriggerEnable(TriggerGetCurrent(), false);
if ((UnitIsSelected(gv_alarak, gv_pLAYER_01_USER) == true) && (libNtve_gf_UnitInRegion(gv_alarak, RegionFromId(22)) == true) && (RegionContainsPoint(RegionFromId(22), CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
CameraLockInput(gv_pLAYER_01_USER, true);
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoDefault(), 2.0, -1, 10.0, false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:4498
TriggerEnable(TriggerGetCurrent(), false);
if ((UnitIsSelected(gv_karax, gv_pLAYER_01_USER) == true) && (libNtve_gf_UnitInRegion(gv_karax, RegionFromId(103)) == true) && (RegionContainsPoint(RegionFromId(103), CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
CameraLockInput(gv_pLAYER_01_USER, true);
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoDefault(), 2.0, -1, 10.0, false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:1633
TriggerExecute(gt_ObjectiveDestroyVoidForcesCreate, true, false);
TriggerExecute(gt_ObjectiveKerriganMustSurviveCreate, true, true);
if ((UnitIsSelected(gv_kERRIGAN, gv_pLAYER_01_USER) == false)) {
libVCMI_gf_AttachReticleEffectAndTextTagOnUnit(libVCMI_ge_CampaginReticleType_ZergMainObjective, libVCMI_ge_CampaginReticleSize_Medium, StringExternal("Param/Value/8EFFCA6B"), gv_kERRIGAN, "Ref_Head");
libHots_gf_StoreActorForUnit(gv_kERRIGAN, 1, libNtve_gf_ActorLastCreated());
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:2932
}
if (!((UnitIsSelected(gv_kERRIGAN, gv_pLAYER_01_USER) == false))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:701
UnitBehaviorRemove(gv_voidCrystals[lp_index].lv_unit, "InfiniteCrystalisRepulsorBehavior", 1);
gf_CreateVoidCrystalShieldEffect(lp_index);
if ((UnitIsSelected(gv_voidCrystals[lp_index].lv_unit, gv_pLAYER_01_USER) == true)) {
UnitSelect(gv_voidCrystals[lp_index].lv_unit, gv_pLAYER_01_USER, false);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:4239
lv_itPlayer = PlayerGroupNextPlayer(auto8C5BEE0F_g, lv_itPlayer);
if (lv_itPlayer < 0) { break; }
if ((UnitIsSelected(lp_targetUnit, lv_itPlayer) == false)) {
PlayerGroupAdd(lv_clearSelectionGroup, lv_itPlayer);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1859
DialogControlSendAnimationEvent(libGDHL_gv_lostVikingsUI.lv_erikDeathStatusFrame, libCore_gv_playerGroupFromPlayer[lv_lVPlayer], "UnitRevived");
DialogControlSendAnimationEvent(libGDHL_gv_lostVikingsUI.lv_allDeathStatusFrame, libCore_gv_playerGroupFromPlayer[lv_lVPlayer], "UnitRevivedPingPongStop");
if ((UnitIsSelected(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone, lv_lVPlayer) == true)) {
UnitSelect(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erikGravestone, lv_lVPlayer, false);
UnitSelect(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_erik, lv_lVPlayer, true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1879
DialogControlSendAnimationEvent(libGDHL_gv_lostVikingsUI.lv_baleogDeathStatusFrame, libCore_gv_playerGroupFromPlayer[lv_lVPlayer], "UnitRevived");
DialogControlSendAnimationEvent(libGDHL_gv_lostVikingsUI.lv_allDeathStatusFrame, libCore_gv_playerGroupFromPlayer[lv_lVPlayer], "UnitRevivedPingPongStop");
if ((UnitIsSelected(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone, lv_lVPlayer) == true)) {
UnitSelect(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleogGravestone, lv_lVPlayer, false);
UnitSelect(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_baleog, lv_lVPlayer, true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1895
DialogControlSendAnimationEvent(libGDHL_gv_lostVikingsUI.lv_olafDeathStatusFrame, libCore_gv_playerGroupFromPlayer[lv_lVPlayer], "UnitRevived");
DialogControlSendAnimationEvent(libGDHL_gv_lostVikingsUI.lv_allDeathStatusFrame, libCore_gv_playerGroupFromPlayer[lv_lVPlayer], "UnitRevivedPingPongStop");
if ((UnitIsSelected(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_olafGravestone, lv_lVPlayer) == true)) {
UnitSelect(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_olafGravestone, lv_lVPlayer, false);
UnitSelect(libGDHL_gv_lostVikingsPlayer[lv_lVPlayer].lv_olaf, lv_lVPlayer, true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13249
}
else {
if ((UnitIsSelected(lv_deadUnit, lv_lVPlayer) == true)) {
UnitSelect(UnitLastCreated(), lv_lVPlayer, true);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:14085
UnitControlGroupAddUnit(lv_lVPlayer, 4, lv_vikingCargoUnit);
UnitControlGroupRemoveUnit(lv_lVPlayer, 4, lv_fakeSelectionVehicle);
if ((UnitIsSelected(lv_fakeSelectionVehicle, lv_lVPlayer) == true)) {
UnitSelect(lv_vikingCargoUnit, lv_lVPlayer, true);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:14089
}
if ((UnitIsSelected(libGame_gf_HeroEnteredTransportTransport(), lv_lVPlayer) == true)) {
UnitSelect(lv_vikingCargoUnit, lv_lVPlayer, true);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19115
return true;
}
if ((UnitIsSelected(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], lv_rexxarPlayer) == true)) {
UnitSelect(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], lv_rexxarPlayer, false);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12333
}
if ((UnitGroupCount(lv_selectedUnits, c_unitCountAll) == 1) && (UnitIsSelected(lp_hero, lp_player) == true)) {
libGame_gv_players[lp_player].lv_cameraPlayerUnitGroupToFocusOn = libNtve_gf_ConvertUnitToUnitGroup(lp_vehicle);
libGame_gf_CameraUpdateCameraForPlayer(lp_player);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12338
}
if ((UnitIsSelected(lp_hero, lp_player) == true)) {
UnitSelect(lp_hero, lp_player, false);
UnitSelect(lp_vehicle, lp_player, true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12365
// Implementation
UnitBehaviorRemove(lp_hero, "HeroGenericTimeStopListener", 1);
if (((UnitIsSelected(lp_vehicle, lp_player) == true) || (UnitIsSelected(libMapM_gv_vehicle[lv_index_Vehicle].lv_unit_LinkedVehicle, lp_player) == true))) {
UnitSelect(lp_vehicle, lp_player, false);
UnitSelect(lp_hero, lp_player, true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12365
// Implementation
UnitBehaviorRemove(lp_hero, "HeroGenericTimeStopListener", 1);
if (((UnitIsSelected(lp_vehicle, lp_player) == true) || (UnitIsSelected(libMapM_gv_vehicle[lv_index_Vehicle].lv_unit_LinkedVehicle, lp_player) == true))) {
UnitSelect(lp_vehicle, lp_player, false);
UnitSelect(lp_hero, lp_player, true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12396
}
if ((UnitIsSelected(lp_originVehicle, lp_player) == true)) {
UnitSelect(lp_originVehicle, lp_player, false);
UnitSelect(lp_newVehicle, lp_player, true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:20910
auto76D38221_at = 0;
while (!((UnitIsSelected(libGame_gv_players[lv_player].lv_heroUnit, lv_player) == true)) && auto76D38221_at <= 1.0) {
Wait(0.0625, c_timeGame);
auto76D38221_at = auto76D38221_at + 0.0625;
mods/heroesmapmods/battlegroundmapmods/hanamura.stormmod — base.stormdata/LibMHmu.galaxy:1473
autoF299F3A1_var = UnitGroupUnitFromEnd(autoF299F3A1_g, autoF299F3A1_u);
if (autoF299F3A1_var == null) { break; }
if ((UnitIsSelected(autoF299F3A1_var, EventPlayer()) == true) && (UnitGetType(autoF299F3A1_var) != "HeroLostVikingsController")) {
libMHmu_gv_heroInTargetMode[EventPlayer()] = autoF299F3A1_var;
break;
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:1119
}
if ((UnitIsSelected(libGame_gv_players[lv_samuroPlayer].lv_heroUnit, lv_samuroPlayer) == false) && ((UnitGroupCount(UnitGroupSelected(lv_samuroPlayer), c_unitCountAlive) == 0) || (UnitGroupCount(libHSAM_gv_mirrorImageUnitGroup[lv_samuroPlayer], c_unitCountAlive) == 0))) {
if ((UnitGetType(libGame_gv_players[lv_samuroPlayer].lv_activeVehicle) == "")) {
UnitGroupSelect(lv_selectedUnits, lv_samuroPlayer, false);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:2030
lv_itSamuroPlayer = 1;
for ( ; lv_itSamuroPlayer <= auto5798CD88_ae ; lv_itSamuroPlayer += 1 ) {
if ((UnitIsSelected(UnitGroupUnit(libGame_gv_players[lv_itSamuroPlayer].lv_heroUnitGroup, 1), lv_itSamuroPlayer) == true) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup2[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup3[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false)) {
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], true);
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon1, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:2030
lv_itSamuroPlayer = 1;
for ( ; lv_itSamuroPlayer <= auto5798CD88_ae ; lv_itSamuroPlayer += 1 ) {
if ((UnitIsSelected(UnitGroupUnit(libGame_gv_players[lv_itSamuroPlayer].lv_heroUnitGroup, 1), lv_itSamuroPlayer) == true) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup2[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup3[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false)) {
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], true);
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon1, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:2030
lv_itSamuroPlayer = 1;
for ( ; lv_itSamuroPlayer <= auto5798CD88_ae ; lv_itSamuroPlayer += 1 ) {
if ((UnitIsSelected(UnitGroupUnit(libGame_gv_players[lv_itSamuroPlayer].lv_heroUnitGroup, 1), lv_itSamuroPlayer) == true) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup2[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup3[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false)) {
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], true);
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon1, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:2038
}
if ((UnitIsSelected(UnitGroupUnit(libGame_gv_players[lv_itSamuroPlayer].lv_heroUnitGroup, 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup2[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == true) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup3[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false)) {
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon1, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], true);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:2038
}
if ((UnitIsSelected(UnitGroupUnit(libGame_gv_players[lv_itSamuroPlayer].lv_heroUnitGroup, 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup2[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == true) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup3[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false)) {
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon1, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], true);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:2038
}
if ((UnitIsSelected(UnitGroupUnit(libGame_gv_players[lv_itSamuroPlayer].lv_heroUnitGroup, 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup2[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == true) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup3[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false)) {
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon1, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], true);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:2046
}
if ((UnitIsSelected(UnitGroupUnit(libGame_gv_players[lv_itSamuroPlayer].lv_heroUnitGroup, 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup2[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup3[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == true)) {
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon1, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:2046
}
if ((UnitIsSelected(UnitGroupUnit(libGame_gv_players[lv_itSamuroPlayer].lv_heroUnitGroup, 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup2[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup3[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == true)) {
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon1, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
mods/heromods/samuro.stormmod — base.stormdata/LibHSAM.galaxy:2046
}
if ((UnitIsSelected(UnitGroupUnit(libGame_gv_players[lv_itSamuroPlayer].lv_heroUnitGroup, 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup2[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == false) && (UnitIsSelected(UnitGroupUnit(libHSAM_gv_mirrorImageUnitGroup3[lv_itSamuroPlayer], 1), lv_itSamuroPlayer) == true)) {
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
DialogControlSetVisible(libHSAM_gv_samuroUI.lv_samuroControlGroupIcon1, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer], false);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:18379
if ((UnitGroupCount(lv_fenixPlayerSelectionGroup, c_unitCountAlive) > 0)) {
lv_fenixPlayerActivedSubGroup = UnitSubgroupSelected(lv_fenixPlayer);
lv_selected = UnitIsSelected(lv_fenixUnitOld, lv_fenixPlayer);
lv_activedSubGroupSelected = UnitGroupHasUnit(lv_fenixPlayerActivedSubGroup, lv_fenixUnitOld);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:26488
UnitCreateEffectUnit(auto8B4AE5B8_var, "TychusResearchCenterCopyRally", libNtve_gf_LastReplacedUnit());
libCOUI_gv_cU_TychusSquadBar = libNtve_gf_LastReplacedUnit();
if ((UnitIsSelected(auto8B4AE5B8_var, UnitGetOwner(libCOMI_gf_EventTychusHero())) == true)) {
UnitSelect(libNtve_gf_LastReplacedUnit(), UnitGetOwner(libCOMI_gf_EventTychusHero()), true);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:26617
}
if ((UnitIsSelected(EventUnit(), UnitGetOwner(EventUnit())) == true)) {
UnitSelect(lv_tychus, UnitGetOwner(EventUnit()), true);
}