# Point Is Visible For Player
Grammar — point is visible for Player player
Flags —Native
|Function
Returns true if the point is visible (by being within a unit’s line of sight or by being revealed) for the specified player.
# Arguments
int
— Playerpoint
— Point
Returns — bool
native bool VisIsVisibleForPlayer(int player, point inPos);
# Related
Category: Visibility / Basic
- Reveal Area —
void
— VisRevealArea - Explore/Unexplore Area —
void
— VisExploreArea - Fill Area Visibility —
void
— VisFillArea - Enable/Disable Visibility —
void
— VisEnable - Show/Hide Placement Models —
void
— libNtve_gf_ShowHidePlacementModels - Get Fog of War Alpha —
fixed
— VisGetFoWAlpha - Set Fog of War Alpha —
void
— VisSetFoWAlpha - Reset Fog of War Alpha —
void
— VisResetFoWAlpha - Visibility Is Enabled —
bool
— VisIsEnabled - Point Is Visible For Player —
bool
— VisIsVisibleForPlayer
# Examples
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:1655
libNtve_gf_PauseUnit(autoA9E1CE21_var, false);
libNtve_gf_ShowHideUnit(autoA9E1CE21_var, true);
if ((GameCheatsEnabled(c_gameCheatCategoryDevelopment) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, UnitGetPosition(autoA9E1CE21_var)) == true)) {
TextExpressionSetToken("Param/Expression/D7D06247", "A", UnitTypeGetName(UnitGetType(autoA9E1CE21_var)));
TextExpressionSetToken("Param/Expression/D7D06247", "B", FixedToText(PointGetX(UnitGetPosition(autoA9E1CE21_var)), 1));
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1158
libNtve_gf_ShowHideUnit(auto40B40B33_var, true);
UnitGroupRemove(gv_perfPausedUnits[lv_index], auto40B40B33_var);
if ((GameCheatsEnabled(c_gameCheatCategoryDevelopment) == true) && (VisIsVisibleForPlayer(gv_PLAYER_01_USER, UnitGetPosition(auto40B40B33_var)) == true)) {
TextExpressionSetToken("Param/Expression/771E00B5", "A", UnitTypeGetName(UnitGetType(auto40B40B33_var)));
TextExpressionSetToken("Param/Expression/771E00B5", "B", FixedToText(PointGetX(UnitGetPosition(auto40B40B33_var)), 1));
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3661
}
if (!((VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:2894
}
if (!((VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:1655
libNtve_gf_PauseUnit(autoA9E1CE21_var, false);
libNtve_gf_ShowHideUnit(autoA9E1CE21_var, true);
if ((GameCheatsEnabled(c_gameCheatCategoryDevelopment) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, UnitGetPosition(autoA9E1CE21_var)) == true)) {
TextExpressionSetToken("Param/Expression/D7D06247", "A", UnitTypeGetName(UnitGetType(autoA9E1CE21_var)));
TextExpressionSetToken("Param/Expression/D7D06247", "B", FixedToText(PointGetX(UnitGetPosition(autoA9E1CE21_var)), 1));
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2map — MapScript.galaxy:1158
libNtve_gf_ShowHideUnit(auto40B40B33_var, true);
UnitGroupRemove(gv_perfPausedUnits[lv_index], auto40B40B33_var);
if ((GameCheatsEnabled(c_gameCheatCategoryDevelopment) == true) && (VisIsVisibleForPlayer(gv_PLAYER_01_USER, UnitGetPosition(auto40B40B33_var)) == true)) {
TextExpressionSetToken("Param/Expression/771E00B5", "A", UnitTypeGetName(UnitGetType(auto40B40B33_var)));
TextExpressionSetToken("Param/Expression/771E00B5", "B", FixedToText(PointGetX(UnitGetPosition(auto40B40B33_var)), 1));
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:3661
}
if (!((VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:2894
}
if (!((VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:5628
ActorSend(ActorFromDoodad(DoodadFromId(2094)), "SetVisibility 1");
ActorSend(ActorFromDoodad(DoodadFromId(2094)), "Signal Work");
if ((RegionContainsPoint(RegionFromId(63), CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
SoundPlayForPlayer(SoundLink("PAiur01_MothershipFlyby1", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:5667
while (true) {
Wait(1.0, c_timeAI);
if ((RegionContainsPoint(RegionFromId(30), CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gf_SetUpUnitFlyBy(3, "Phoenix", gv_pLAYER_04_PROTOSS_RESCUE, 12.0, PointFromId(3982), PointFromId(3983));
Wait(2.0, c_timeAI);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:5702
while (true) {
Wait(1.0, c_timeAI);
if ((RegionContainsPoint(RegionFromId(32), CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gf_SetUpUnitFlyBy(3, "Phoenix", gv_pLAYER_04_PROTOSS_RESCUE, 12.0, PointFromId(3984), PointFromId(3985));
Wait(2.0, c_timeAI);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:7374
}
if (!((VisIsVisibleForPlayer(gv_pLAYER_01_USER, RegionGetCenter(RegionFromId(13))) == true))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:7733
}
if (!((VisIsVisibleForPlayer(gv_pLAYER_01_USER, RegionGetCenter(RegionFromId(30))) == true))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:3301
lv_index = 1;
for ( ; ( (auto3D5C78A6_ai >= 0 && lv_index <= auto3D5C78A6_ae) || (auto3D5C78A6_ai < 0 && lv_index >= auto3D5C78A6_ae) ) ; lv_index += auto3D5C78A6_ai ) {
if ((gv_explodingCliffBuildings[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_explodingCliffBuildings[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_explodingCliffBuildings[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_explodingCliffBuildings[lv_index].lv_region, "ExplodingCliffBuilding");
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:3309
lv_index = 1;
for ( ; ( (auto3A511A98_ai >= 0 && lv_index <= auto3A511A98_ae) || (auto3A511A98_ai < 0 && lv_index >= auto3A511A98_ae) ) ; lv_index += auto3A511A98_ai ) {
if ((gv_damagedCliffBuildings[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_damagedCliffBuildings[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_damagedCliffBuildings[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_damagedCliffBuildings[lv_index].lv_region, "KorhalPlatform_DamagedCliffBuilding");
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal01.sc2map/MapScript.galaxy:3317
lv_index = 1;
for ( ; ( (autoA90E764B_ai >= 0 && lv_index <= autoA90E764B_ae) || (autoA90E764B_ai < 0 && lv_index >= autoA90E764B_ae) ) ; lv_index += autoA90E764B_ai ) {
if ((gv_korhalDebris[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_korhalDebris[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_korhalDebris[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_korhalDebris[lv_index].lv_region, "Korhal_Debris");
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:4072
while (true) {
Wait(1.0, c_timeAI);
if ((RegionContainsPoint(RegionFromId(43), CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
VisRevealArea(gv_pLAYER_01_USER, RegionFromId(43), 12.0, false);
gf_ActivateCarrierCrashinRegion(RegionFromId(43));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:2926
lv_cameraRegion = gv_causewayDestructiblesBottom.lv_cameraArea2;
}
if ((RegionContainsPoint(lv_cameraRegion, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
ActorSend(gv_causewayDestructiblesBottom.lv_doodadActors[lv_currentDestructible], libNtve_gf_Signal("DoodadDeath"));
SoundPlayForPlayer(gv_causewayDestructiblesBottom.lv_doodadSoundEffects[lv_currentDestructible], c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:2988
lv_cameraRegion = gv_causewayDestructiblesLeft.lv_cameraArea2;
}
if ((RegionContainsPoint(lv_cameraRegion, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
ActorSend(gv_causewayDestructiblesLeft.lv_doodadActors[lv_currentDestructible], libNtve_gf_Signal("DoodadDeath"));
SoundPlayForPlayer(gv_causewayDestructiblesLeft.lv_doodadSoundEffects[lv_currentDestructible], c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:3049
lv_cameraRegion = gv_causewayDestructiblesRight.lv_cameraArea2;
}
if ((RegionContainsPoint(lv_cameraRegion, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
ActorSend(gv_causewayDestructiblesRight.lv_doodadActors[lv_currentDestructible], libNtve_gf_Signal("DoodadDeath"));
SoundPlayForPlayer(gv_causewayDestructiblesRight.lv_doodadSoundEffects[lv_currentDestructible], c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar02.sc2map/MapScript.galaxy:646
// Implementation
Wait(1.0, c_timeGame);
while (!((VisIsVisibleForPlayer(gv_pLAYER_01_USER, UnitGetPosition(lp_construct)) == true))) {
Wait(0.0625, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:5628
ActorSend(ActorFromDoodad(DoodadFromId(2094)), "SetVisibility 1");
ActorSend(ActorFromDoodad(DoodadFromId(2094)), "Signal Work");
if ((RegionContainsPoint(RegionFromId(63), CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
SoundPlayForPlayer(SoundLink("PAiur01_MothershipFlyby1", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:5667
while (true) {
Wait(1.0, c_timeAI);
if ((RegionContainsPoint(RegionFromId(30), CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gf_SetUpUnitFlyBy(3, "Phoenix", gv_pLAYER_04_PROTOSS_RESCUE, 12.0, PointFromId(3982), PointFromId(3983));
Wait(2.0, c_timeAI);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:5702
while (true) {
Wait(1.0, c_timeAI);
if ((RegionContainsPoint(RegionFromId(32), CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gf_SetUpUnitFlyBy(3, "Phoenix", gv_pLAYER_04_PROTOSS_RESCUE, 12.0, PointFromId(3984), PointFromId(3985));
Wait(2.0, c_timeAI);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:7374
}
if (!((VisIsVisibleForPlayer(gv_pLAYER_01_USER, RegionGetCenter(RegionFromId(13))) == true))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:7733
}
if (!((VisIsVisibleForPlayer(gv_pLAYER_01_USER, RegionGetCenter(RegionFromId(30))) == true))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:3301
lv_index = 1;
for ( ; ( (auto3D5C78A6_ai >= 0 && lv_index <= auto3D5C78A6_ae) || (auto3D5C78A6_ai < 0 && lv_index >= auto3D5C78A6_ae) ) ; lv_index += auto3D5C78A6_ai ) {
if ((gv_explodingCliffBuildings[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_explodingCliffBuildings[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_explodingCliffBuildings[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_explodingCliffBuildings[lv_index].lv_region, "ExplodingCliffBuilding");
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:3309
lv_index = 1;
for ( ; ( (auto3A511A98_ai >= 0 && lv_index <= auto3A511A98_ae) || (auto3A511A98_ai < 0 && lv_index >= auto3A511A98_ae) ) ; lv_index += auto3A511A98_ai ) {
if ((gv_damagedCliffBuildings[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_damagedCliffBuildings[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_damagedCliffBuildings[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_damagedCliffBuildings[lv_index].lv_region, "KorhalPlatform_DamagedCliffBuilding");
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal01.sc2map — MapScript.galaxy:3317
lv_index = 1;
for ( ; ( (autoA90E764B_ai >= 0 && lv_index <= autoA90E764B_ae) || (autoA90E764B_ai < 0 && lv_index >= autoA90E764B_ae) ) ; lv_index += autoA90E764B_ai ) {
if ((gv_korhalDebris[lv_index].lv_triggered == false) && (RegionContainsPoint(gv_korhalDebris[lv_index].lv_region, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
gv_korhalDebris[lv_index].lv_triggered = true;
libNtve_gf_KillDoodadsInRegion(gv_korhalDebris[lv_index].lv_region, "Korhal_Debris");
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:4072
while (true) {
Wait(1.0, c_timeAI);
if ((RegionContainsPoint(RegionFromId(43), CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
VisRevealArea(gv_pLAYER_01_USER, RegionFromId(43), 12.0, false);
gf_ActivateCarrierCrashinRegion(RegionFromId(43));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2map — MapScript.galaxy:2926
lv_cameraRegion = gv_causewayDestructiblesBottom.lv_cameraArea2;
}
if ((RegionContainsPoint(lv_cameraRegion, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
ActorSend(gv_causewayDestructiblesBottom.lv_doodadActors[lv_currentDestructible], libNtve_gf_Signal("DoodadDeath"));
SoundPlayForPlayer(gv_causewayDestructiblesBottom.lv_doodadSoundEffects[lv_currentDestructible], c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2map — MapScript.galaxy:2988
lv_cameraRegion = gv_causewayDestructiblesLeft.lv_cameraArea2;
}
if ((RegionContainsPoint(lv_cameraRegion, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
ActorSend(gv_causewayDestructiblesLeft.lv_doodadActors[lv_currentDestructible], libNtve_gf_Signal("DoodadDeath"));
SoundPlayForPlayer(gv_causewayDestructiblesLeft.lv_doodadSoundEffects[lv_currentDestructible], c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2map — MapScript.galaxy:3049
lv_cameraRegion = gv_causewayDestructiblesRight.lv_cameraArea2;
}
if ((RegionContainsPoint(lv_cameraRegion, CameraGetTarget(gv_pLAYER_01_USER)) == true) && (VisIsVisibleForPlayer(gv_pLAYER_01_USER, CameraGetTarget(gv_pLAYER_01_USER)) == true)) {
ActorSend(gv_causewayDestructiblesRight.lv_doodadActors[lv_currentDestructible], libNtve_gf_Signal("DoodadDeath"));
SoundPlayForPlayer(gv_causewayDestructiblesRight.lv_doodadSoundEffects[lv_currentDestructible], c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar02.sc2map — MapScript.galaxy:646
// Implementation
Wait(1.0, c_timeGame);
while (!((VisIsVisibleForPlayer(gv_pLAYER_01_USER, UnitGetPosition(lp_construct)) == true))) {
Wait(0.0625, c_timeGame);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4619
lv_targetPoint = OrderGetTargetPoint(EventUnitOrder());
if ((VisIsVisibleForPlayer(1, lv_targetPoint) == false)) {
return true;
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:1425
lv_pingPos = UnitGroupCenterOfGroup(lp_attackGroup);
if ((lv_attackPing2 != c_invalidPingId)) {
if ((VisIsVisibleForPlayer(libCore_gv_cOMPUTER_TeamOrder, lv_pingPos) == true)) {
PingSetVisible(lv_attackPing2, false);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:1433
}
if (((libGame_gv_gameOver == true) || (libNtve_gf_UnitGroupIsDead(lp_attackGroup) == true) || ((UnitGroupCount(UnitGroup(null, libCore_gv_cOMPUTER_TeamOrder, RegionCircle(lv_pingPos, 20.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0) && (VisIsVisibleForPlayer(libCore_gv_cOMPUTER_TeamOrder, lv_pingPos) == true)))) {
PingDestroy(lv_attackPing1);
if ((lv_attackPing2 != c_invalidPingId)) {
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:5544
lv_regionIndex = 1;
for ( ; ( (auto9155E5BF_ai >= 0 && lv_regionIndex <= auto9155E5BF_ae) || (auto9155E5BF_ai < 0 && lv_regionIndex >= auto9155E5BF_ae) ) ; lv_regionIndex += auto9155E5BF_ai ) {
if ((lv_regionExplored[lv_regionIndex] == false) && (VisIsVisibleForPlayer(libStEx_gv_pLAYER_11_ORDER, lv_explorationPoints[lv_regionIndex]) == true)) {
lv_regionExplored[lv_regionIndex] = true;
auto3BFD6783_g = libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup;
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:11475
lv_regionIndex = 1;
for ( ; ( (autoB4688327_ai >= 0 && lv_regionIndex <= autoB4688327_ae) || (autoB4688327_ai < 0 && lv_regionIndex >= autoB4688327_ae) ) ; lv_regionIndex += autoB4688327_ai ) {
if ((lv_regionExplored[lv_regionIndex] == false) && (VisIsVisibleForPlayer(libStEx_gv_pLAYER_11_ORDER, lv_explorationPoints[lv_regionIndex]) == true)) {
lv_regionExplored[lv_regionIndex] = true;
auto54DAE664_g = libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup;
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:11571
lv_regionIndex = 1;
for ( ; ( (auto532C4E19_ai >= 0 && lv_regionIndex <= auto532C4E19_ae) || (auto532C4E19_ai < 0 && lv_regionIndex >= auto532C4E19_ae) ) ; lv_regionIndex += auto532C4E19_ai ) {
if ((lv_regionExplored[lv_regionIndex] == false) && (VisIsVisibleForPlayer(libStEx_gv_pLAYER_11_ORDER, lv_explorationPoints[lv_regionIndex]) == true)) {
lv_regionExplored[lv_regionIndex] = true;
auto661FAD45_g = libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:21655
lv_enemyTeam = libCore_gv_cOMPUTER_TeamOrder;
}
if ((VisIsVisibleForPlayer(lv_enemyTeam, lv_effectPoint) == true)) {
VisRevealArea(lv_enemyTeam, RegionCircle(UnitGetPosition(lv_stitches), 0.5), 0.25, false);
}
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:188
PlayerGroupAdd(lv_pingPlayers, lp_player);
if ((libNtve_gf_PlayerIsEnemy(lp_player, lp_pingTargetOwner, libNtve_ge_PlayerRelation_Enemy) == true)) {
if ((EventPingUnitIsUnderConstruction() == true) && (VisIsVisibleForPlayer(lp_player, lp_pingTargetPosition) == false)) {
TextExpressionSetToken("Param/Expression/lib_Lbty_408B1BB0", "ID", IntToText(lp_player));
TextExpressionSetToken("Param/Expression/lib_Lbty_408B1BB0", "PLAYER", GameUserName(lp_gameUser));
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:8122
}
else {
if ((DistanceBetweenPoints(UnitGetPosition(gv_nova), UnitGetPosition(gv_stone)) <= 10.0) && (VisIsVisibleForPlayer(gv_pLAYER_05_DEFENDERS, UnitGetPosition(gv_nova)) == true) && (TimerGetRemaining(gv_s3_EMPTimer) == 0.0) && (UnitTestState(gv_nova, c_unitStateCloaked) == true)) {
gf_S3StoneCastsEMP(UnitGetPosition(gv_nova));
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:8130
lv_closestEnemyTargetUnit = UnitGroupClosestToPoint(lv_enemyTargetGroup, UnitGetPosition(gv_stone));
if ((UnitGroupCount(lv_enemyTargetGroup, c_unitCountAlive) > 0) && (lv_closestEnemyTargetUnit != null)) {
if ((PointPathingCost(UnitGetPosition(gv_stone), UnitGetPosition(lv_closestEnemyTargetUnit)) > 3) && (VisIsVisibleForPlayer(gv_pLAYER_05_DEFENDERS, UnitGetPosition(lv_closestEnemyTargetUnit)) == true)) {
lv_movePoint = UnitGetPosition(gv_stone);
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:8122
}
else {
if ((DistanceBetweenPoints(UnitGetPosition(gv_nova), UnitGetPosition(gv_stone)) <= 10.0) && (VisIsVisibleForPlayer(gv_pLAYER_05_DEFENDERS, UnitGetPosition(gv_nova)) == true) && (TimerGetRemaining(gv_s3_EMPTimer) == 0.0) && (UnitTestState(gv_nova, c_unitStateCloaked) == true)) {
gf_S3StoneCastsEMP(UnitGetPosition(gv_nova));
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2map — MapScript.galaxy:8130
lv_closestEnemyTargetUnit = UnitGroupClosestToPoint(lv_enemyTargetGroup, UnitGetPosition(gv_stone));
if ((UnitGroupCount(lv_enemyTargetGroup, c_unitCountAlive) > 0) && (lv_closestEnemyTargetUnit != null)) {
if ((PointPathingCost(UnitGetPosition(gv_stone), UnitGetPosition(lv_closestEnemyTargetUnit)) > 3) && (VisIsVisibleForPlayer(gv_pLAYER_05_DEFENDERS, UnitGetPosition(lv_closestEnemyTargetUnit)) == true)) {
lv_movePoint = UnitGetPosition(gv_stone);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:29031
lv_targetPoint = OrderGetTargetPoint(EventUnitOrder());
lv_casterPlayer = EventPlayer();
if ((VisIsVisibleForPlayer(lv_casterPlayer, lv_targetPoint) == false)) {
return true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:1720
lv_orderLocation = OrderGetTargetPosition(lp_order);
if (((VisIsVisibleForPlayer(1, lv_orderLocation) == true) || (lv_orderLocation == null))) {
}
else {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:6948
while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 1.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 5.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
UnitCreate(1, lv_monsterType, 0, 3, lv_spawnPoint, libNtve_gf_RandomAngle());
libCOMU_gf_CT_RegisterSpawnedUnit(UnitLastCreated());
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:7166
while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_spawnPoint) == true) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 1.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("WidowMineBurrowed", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("SpiderMineBurrowed", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
lv_widowMineSpawn = 0;
lv_spiderMineSpawn = 0;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:10862
while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_spawnPoint) == true) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 5.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
UnitCreate(1, lv_monsterType, 0, 3, lv_spawnPoint, libNtve_gf_RandomAngle());
lv_spawnCount += 1;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:10932
while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 5.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
UnitCreate(1, lv_monsterType, 0, 3, lv_spawnPoint, libNtve_gf_RandomAngle());
libCOMU_gf_CT_RegisterSpawnedUnit(UnitLastCreated());