# Unit Is Visible To Player
Grammar — unit is visible to player player
Flags —Function
Returns true if the specified unit is visible to the specified player.
# Arguments
unit
— Unitint
— Player
Returns — bool
bool libNtve_gf_UnitIsVisibleToPlayer(
unit lp_unit,
int lp_player,
);
# Related
Category: Unit / Basic
- Unit Show Kill Display —
void
— UnitShowKillDisplay - Unit Can Path To Point —
bool
— UnitPathableToPoint - Unit Can Path To Unit —
bool
— UnitPathableToUnit - Create Units With Default Facing —
void
— libNtve_gf_CreateUnitsWithDefaultFacing - Create Units With Point Facing —
void
— libNtve_gf_CreateUnitsAtPoint2 - Create Units Facing Angle —
unitgroup
— UnitCreate - Create Units Facing Point —
unitgroup
— libNtve_gf_UnitCreateFacingPoint - Last Created Unit —
unit
— UnitLastCreated - Last Created Units —
unitgroup
— UnitLastCreatedGroup - Original Caster Of Unit —
unit
— UnitGetOriginalCaster - Effect That Created Unit —
string
<gamelink::Effect> — UnitGetOriginalEffect - Replace Unit —
void
— libNtve_gf_ReplaceUnit - Last Replaced Unit —
unit
— libNtve_gf_LastReplacedUnit - Change Owner —
void
— UnitSetOwner - Unit Owner Changes —
void
— TriggerAddEventUnitChangeOwner - Old Unit Owner —
int
— EventUnitOwnerOld - New Unit Owner —
int
— EventUnitOwnerNew - Rescue Unit —
void
— libNtve_gf_RescueUnit - Rescue Unit Group —
void
— libNtve_gf_RescueUnit2 - Kill Unit —
void
— UnitKill - Revive Unit —
void
— UnitRevive - Remove Unit —
void
— UnitRemove - Owner Of Unit —
int
— UnitGetOwner - Unit Is Alive —
bool
— UnitIsAlive - Unit Is Valid —
bool
— UnitIsValid - Unit Group Is Dead —
bool
— libNtve_gf_UnitGroupIsDead - Move Unit Instantly —
void
— UnitSetPosition - Make Unit Face Angle —
void
— UnitSetFacing - Make Unit Face Point —
void
— libNtve_gf_MakeUnitFacePoint - Position Of Unit —
point
— UnitGetPosition - Goal Position Of Unit —
point
— UnitGetGoalPosition - Facing Angle Of Unit —
fixed
— UnitGetFacing - Pause/Unpause Unit —
void
— libNtve_gf_PauseUnit - Pause/Unpause All Units —
void
— UnitPauseAll - Sleep/WakeUp Unit —
void
— libNtve_gf_SleepUnit - Show/Hide Unit —
void
— libNtve_gf_ShowHideUnit - Share Vision of Unit —
void
— libNtve_gf_ShareVisionofUnit - Unit Is Paused —
bool
— libNtve_gf_UnitIsPaused - Unit Is Sleepiing —
bool
— libNtve_gf_UnitIsSleepiing - Unit Is Hidden —
bool
— libNtve_gf_UnitIsHidden - Unit Is Visible To Player —
bool
— libNtve_gf_UnitIsVisibleToPlayer - Set Unit Custom Value —
void
— UnitSetCustomValue - Custom Value Of Unit —
fixed
— UnitGetCustomValue - Unit Enters/Leaves Region —
void
— TriggerAddEventUnitRegion - Triggering Region —
region
— EventUnitRegion - Unit Enters/Leaves Point —
void
— TriggerAddEventUnitRangePoint - Unit Enters/Leaves Range Of Unit —
void
— TriggerAddEventUnitRange - Triggering Range Unit —
unit
— EventUnitRangeUnit - Unit In Region —
bool
— libNtve_gf_UnitInRegion - Triggering Unit —
unit
— EventUnit - Load Unit Model —
void
— UnitLoadModel - Unload Unit Model —
void
— UnitUnloadModel - Agent Of Player For Unit —
unit
— UnitAgent - Change Empty Unit Variables In Events —
void
— UnitEventSetNullVariableInvalid - Name of Unit —
text
— UnitGetName - Ideal Harvester Count —
int
— UnitIdealWorkerCount - Current Harvester Count —
int
— UnitCurrentWorkerCount
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:5577
auto05A7AB37_var = UnitGroupUnitFromEnd(auto05A7AB37_g, auto05A7AB37_u);
if (auto05A7AB37_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto05A7AB37_var, 1) == false) && (UnitGetType(auto05A7AB37_var) == "SCV")) {
UnitRemove(auto05A7AB37_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2908
void gf_ShowHideJukeboxTrackInfo (bool lp_showHide) {
// Implementation
if ((lp_showHide == true) && (libNtve_gf_UnitIsVisibleToPlayer(gv_marSaraJukebox, 1) == false) && (libNtve_gf_UnitIsVisibleToPlayer(gv_cantinaJukebox, 1) == false)) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2908
void gf_ShowHideJukeboxTrackInfo (bool lp_showHide) {
// Implementation
if ((lp_showHide == true) && (libNtve_gf_UnitIsVisibleToPlayer(gv_marSaraJukebox, 1) == false) && (libNtve_gf_UnitIsVisibleToPlayer(gv_cantinaJukebox, 1) == false)) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1009
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnit(), gv_p04_ZERG) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1042
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnit(), gv_p04_ZERG) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2263
}
if ((UnitIsAlive(gv_tosh) == true) && (libNtve_gf_UnitIsVisibleToPlayer(gv_tosh, gv_p6_DOMINION_ORANGE) == true) && (libNtve_gf_UnitInRegion(gv_tosh, RegionCircle(libNtve_gf_CenterOfUnitGroup(lv_patrolGroup), 9.0)) == true)) {
UnitGroupIssueOrder(lv_patrolGroup, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(gv_tosh)), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2317
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(gv_tosh, gv_p6_DOMINION_ORANGE) == false))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2349
}
Wait(1.5, c_timeGame);
if ((libNtve_gf_UnitIsVisibleToPlayer(gv_tosh, gv_p6_DOMINION_ORANGE) == true)) {
TriggerEnable(TriggerGetCurrent(), true);
gv_cellBlockASearching = false;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:1165
lv_iNT = 1;
for ( ; ( (auto00FDADA2_ai >= 0 && lv_iNT <= auto00FDADA2_ae) || (auto00FDADA2_ai < 0 && lv_iNT >= auto00FDADA2_ae) ) ; lv_iNT += auto00FDADA2_ai ) {
if ((UnitIsAlive(gv_spectreUnitArray[lv_iNT]) == true) && (gv_spectrePingArray[lv_iNT] == c_invalidPingId) && (libNtve_gf_UnitIsVisibleToPlayer(gv_spectreUnitArray[lv_iNT], gv_pLAYER01_USER) == true)) {
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(gv_spectreUnitArray[lv_iNT]), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);
PingSetUnit(PingLastCreated(), gv_spectreUnitArray[lv_iNT]);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3848
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER02_TOSH) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3892
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER02_TOSH) == true))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2954
while (true) {
if (((libNtve_gf_UnitIsVisibleToPlayer(EventUnit(), gv_p01_USER) == false) || (UnitIsAlive(EventUnit()) == false))) {
UnitRemove(EventUnit());
break;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:494
auto245CDEAB_var = UnitGroupUnitFromEnd(auto245CDEAB_g, auto245CDEAB_u);
if (auto245CDEAB_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto245CDEAB_var, gv_pLAYER_P07_ZERG_EXP) == false)) {
UnitGroupRemove(lv_nearbyEnemies, auto245CDEAB_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2029
UnitSetState(UnitFromId(230), c_unitStateInvulnerable, true);
UnitIssueOrder(UnitFromId(230), Order(AbilityCommand("BurrowUltraliskDown", 0)), c_orderQueueReplace);
while (!((libNtve_gf_UnitIsVisibleToPlayer(UnitFromId(230), gv_p1_USER) == false))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2436
auto4B7AEACA_var = UnitGroupUnitFromEnd(auto4B7AEACA_g, auto4B7AEACA_u);
if (auto4B7AEACA_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto4B7AEACA_var, gv_p1_USER) == false)) {
UnitRemove(auto4B7AEACA_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2865
auto227EBC88_var = UnitGroupUnitFromEnd(auto227EBC88_g, auto227EBC88_u);
if (auto227EBC88_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto227EBC88_var, 1) == false)) {
UnitRemove(auto227EBC88_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3263
auto76F80C67_var = UnitGroupUnitFromEnd(auto76F80C67_g, auto76F80C67_u);
if (auto76F80C67_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto76F80C67_var, gv_p1_USER) == false)) {
UnitRemove(auto76F80C67_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3666
autoB101C32F_var = UnitGroupUnitFromEnd(autoB101C32F_g, autoB101C32F_u);
if (autoB101C32F_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(autoB101C32F_var, gv_p3_ZERG) == false)) {
UnitGroupRemove(lv_unitGroup, autoB101C32F_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3766
auto28730EB2_var = UnitGroupUnitFromEnd(auto28730EB2_g, auto28730EB2_u);
if (auto28730EB2_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto28730EB2_var, gv_p1_USER) == false)) {
UnitRemove(auto28730EB2_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:4252
autoDEBE0FD1_var = UnitGroupUnitFromEnd(autoDEBE0FD1_g, autoDEBE0FD1_u);
if (autoDEBE0FD1_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(autoDEBE0FD1_var, gv_p3_ZERG) == false)) {
UnitGroupRemove(lv_unitGroup, autoDEBE0FD1_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:4442
if ((UnitHasBehavior(EventUnit(), "ZeratulStun") == false) && (UnitGroupCount(UnitGroup("Stalker", gv_p1_USER, RegionCircle(UnitGetPosition(EventUnit()), 7.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
UnitIssueOrder(EventUnit(), Order(AbilityCommand("BurrowUltraliskDown", 0)), c_orderQueueReplace);
while (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnit(), gv_p1_USER) == false))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:6067
auto394906C2_var = UnitGroupUnitFromEnd(auto394906C2_g, auto394906C2_u);
if (auto394906C2_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto394906C2_var, gv_p1_USER) == false)) {
UnitRemove(auto394906C2_var);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7159
auto8D9A69AB_var = UnitGroupUnitFromEnd(auto8D9A69AB_g, auto8D9A69AB_u);
if (auto8D9A69AB_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto8D9A69AB_var, gv_p3_ZERG) == false)) {
UnitGroupRemove(lv_unitGroup, auto8D9A69AB_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:5577
auto05A7AB37_var = UnitGroupUnitFromEnd(auto05A7AB37_g, auto05A7AB37_u);
if (auto05A7AB37_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto05A7AB37_var, 1) == false) && (UnitGetType(auto05A7AB37_var) == "SCV")) {
UnitRemove(auto05A7AB37_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:2908
void gf_ShowHideJukeboxTrackInfo (bool lp_showHide) {
// Implementation
if ((lp_showHide == true) && (libNtve_gf_UnitIsVisibleToPlayer(gv_marSaraJukebox, 1) == false) && (libNtve_gf_UnitIsVisibleToPlayer(gv_cantinaJukebox, 1) == false)) {
return ;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:2908
void gf_ShowHideJukeboxTrackInfo (bool lp_showHide) {
// Implementation
if ((lp_showHide == true) && (libNtve_gf_UnitIsVisibleToPlayer(gv_marSaraJukebox, 1) == false) && (libNtve_gf_UnitIsVisibleToPlayer(gv_cantinaJukebox, 1) == false)) {
return ;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2map — MapScript.galaxy:1009
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnit(), gv_p04_ZERG) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2map — MapScript.galaxy:1042
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnit(), gv_p04_ZERG) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:2263
}
if ((UnitIsAlive(gv_tosh) == true) && (libNtve_gf_UnitIsVisibleToPlayer(gv_tosh, gv_p6_DOMINION_ORANGE) == true) && (libNtve_gf_UnitInRegion(gv_tosh, RegionCircle(libNtve_gf_CenterOfUnitGroup(lv_patrolGroup), 9.0)) == true)) {
UnitGroupIssueOrder(lv_patrolGroup, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(gv_tosh)), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:2317
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(gv_tosh, gv_p6_DOMINION_ORANGE) == false))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:2349
}
Wait(1.5, c_timeGame);
if ((libNtve_gf_UnitIsVisibleToPlayer(gv_tosh, gv_p6_DOMINION_ORANGE) == true)) {
TriggerEnable(TriggerGetCurrent(), true);
gv_cellBlockASearching = false;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:1165
lv_iNT = 1;
for ( ; ( (auto00FDADA2_ai >= 0 && lv_iNT <= auto00FDADA2_ae) || (auto00FDADA2_ai < 0 && lv_iNT >= auto00FDADA2_ae) ) ; lv_iNT += auto00FDADA2_ai ) {
if ((UnitIsAlive(gv_spectreUnitArray[lv_iNT]) == true) && (gv_spectrePingArray[lv_iNT] == c_invalidPingId) && (libNtve_gf_UnitIsVisibleToPlayer(gv_spectreUnitArray[lv_iNT], gv_pLAYER01_USER) == true)) {
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(gv_spectreUnitArray[lv_iNT]), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);
PingSetUnit(PingLastCreated(), gv_spectreUnitArray[lv_iNT]);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:3848
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER02_TOSH) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:3892
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER02_TOSH) == true))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:2954
while (true) {
if (((libNtve_gf_UnitIsVisibleToPlayer(EventUnit(), gv_p01_USER) == false) || (UnitIsAlive(EventUnit()) == false))) {
UnitRemove(EventUnit());
break;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:494
auto245CDEAB_var = UnitGroupUnitFromEnd(auto245CDEAB_g, auto245CDEAB_u);
if (auto245CDEAB_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto245CDEAB_var, gv_pLAYER_P07_ZERG_EXP) == false)) {
UnitGroupRemove(lv_nearbyEnemies, auto245CDEAB_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:2029
UnitSetState(UnitFromId(230), c_unitStateInvulnerable, true);
UnitIssueOrder(UnitFromId(230), Order(AbilityCommand("BurrowUltraliskDown", 0)), c_orderQueueReplace);
while (!((libNtve_gf_UnitIsVisibleToPlayer(UnitFromId(230), gv_p1_USER) == false))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:2436
auto4B7AEACA_var = UnitGroupUnitFromEnd(auto4B7AEACA_g, auto4B7AEACA_u);
if (auto4B7AEACA_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto4B7AEACA_var, gv_p1_USER) == false)) {
UnitRemove(auto4B7AEACA_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:2865
auto227EBC88_var = UnitGroupUnitFromEnd(auto227EBC88_g, auto227EBC88_u);
if (auto227EBC88_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto227EBC88_var, 1) == false)) {
UnitRemove(auto227EBC88_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:3263
auto76F80C67_var = UnitGroupUnitFromEnd(auto76F80C67_g, auto76F80C67_u);
if (auto76F80C67_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto76F80C67_var, gv_p1_USER) == false)) {
UnitRemove(auto76F80C67_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:3666
autoB101C32F_var = UnitGroupUnitFromEnd(autoB101C32F_g, autoB101C32F_u);
if (autoB101C32F_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(autoB101C32F_var, gv_p3_ZERG) == false)) {
UnitGroupRemove(lv_unitGroup, autoB101C32F_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:3766
auto28730EB2_var = UnitGroupUnitFromEnd(auto28730EB2_g, auto28730EB2_u);
if (auto28730EB2_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto28730EB2_var, gv_p1_USER) == false)) {
UnitRemove(auto28730EB2_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:4252
autoDEBE0FD1_var = UnitGroupUnitFromEnd(autoDEBE0FD1_g, autoDEBE0FD1_u);
if (autoDEBE0FD1_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(autoDEBE0FD1_var, gv_p3_ZERG) == false)) {
UnitGroupRemove(lv_unitGroup, autoDEBE0FD1_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:4442
if ((UnitHasBehavior(EventUnit(), "ZeratulStun") == false) && (UnitGroupCount(UnitGroup("Stalker", gv_p1_USER, RegionCircle(UnitGetPosition(EventUnit()), 7.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
UnitIssueOrder(EventUnit(), Order(AbilityCommand("BurrowUltraliskDown", 0)), c_orderQueueReplace);
while (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnit(), gv_p1_USER) == false))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:6067
auto394906C2_var = UnitGroupUnitFromEnd(auto394906C2_g, auto394906C2_u);
if (auto394906C2_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto394906C2_var, gv_p1_USER) == false)) {
UnitRemove(auto394906C2_var);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:7159
auto8D9A69AB_var = UnitGroupUnitFromEnd(auto8D9A69AB_g, auto8D9A69AB_u);
if (auto8D9A69AB_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto8D9A69AB_var, gv_p3_ZERG) == false)) {
UnitGroupRemove(lv_unitGroup, auto8D9A69AB_var);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:2407
UnitGroupLoopBegin(gv_hunterMedivacGroup1);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((libNtve_gf_UnitIsVisibleToPlayer(UnitGroupLoopCurrent(), gv_pLAYER_01_USER) == true) && (UnitIsAlive(UnitGroupLoopCurrent()) == true)) {
if ((lv_first == true)) {
lv_first = false;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:4068
if ((gv_zagaraAlive == true) && (gv_inCinematic == false)) {
if ((libNtve_gf_UnitIsVisibleToPlayer(gv_zagara, gv_pLAYER_01_USER) == true)) {
PingSetVisible(gv_zagaraBossPing, true);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:446
// Implementation
while (!((gv_inCinematic == false) && (libNtve_gf_UnitIsVisibleToPlayer(lp_uNIT, gv_pLAYER_01_USER) == true))) {
Wait(0.3, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:773
autoFA1E7D0E_var = UnitGroupUnitFromEnd(autoFA1E7D0E_g, autoFA1E7D0E_u);
if (autoFA1E7D0E_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(autoFA1E7D0E_var, gv_pLAYER_01_USER) == true)) {
gf_RemoveFlashFreezeFromUnit(autoFA1E7D0E_var);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:2053
if (auto39882515_var == null) { break; }
if ((UnitHasBehavior(auto39882515_var, "FlashFreeze") == false)) {
if ((libNtve_gf_UnitIsVisibleToPlayer(auto39882515_var, gv_pLAYER_01_USER) == true)) {
gf_AddFlashFreezetoUnit(auto39882515_var);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:1919
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER_01_USER) == false))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:3932
}
if (((gv_inCinematic == true) || (libNtve_gf_UnitIsVisibleToPlayer(gv_dEHAKA, gv_pLAYER_01_USER) == false))) {
gv_dehakaIdleTime = 0;
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:2351
auto2720FF98_var = UnitGroupUnitFromEnd(auto2720FF98_g, auto2720FF98_u);
if (auto2720FF98_var == null) { break; }
if ((libNtve_gf_UnitInRegion(auto2720FF98_var, lv_searchRegion) == true) && (libNtve_gf_UnitIsVisibleToPlayer(auto2720FF98_var, gv_pLAYER_01_USER) == true)) {
VisRevealArea(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(auto2720FF98_var), 3.0), 0.75, false);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:1489
auto94FE762D_var = UnitGroupUnitFromEnd(auto94FE762D_g, auto94FE762D_u);
if (auto94FE762D_var == null) { break; }
if ((libNtve_gf_UnitInRegion(gv_kerrigan, RegionCircle(UnitGetPosition(auto94FE762D_var), 6.0)) == true) && (libNtve_gf_UnitIsVisibleToPlayer(gv_kerrigan, gv_p05_PRISONERS) == true)) {
gf_FleePrisoners(auto94FE762D_var, UnitGetPosition(gv_kerrigan));
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1150
lv_indexUnit = UnitGroupUnitFromEnd(auto2934096F_g, auto2934096F_u);
if (lv_indexUnit == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_indexUnit, gv_pLAYER_01_USER) == true)) {
lv_visible = true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1154
}
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_indexUnit, gv_pLAYER_01_USER) == false)) {
lv_allVisible = false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:3460
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitRangeUnit(), gv_pLAYER_01_USER) == true))) {
return false;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:3533
auto02B9333B_var = UnitGroupUnitFromEnd(auto02B9333B_g, auto02B9333B_u);
if (auto02B9333B_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(gv_tHE_ONE_DEHAKA, gv_pLAYER_01_USER) == true) && (libNtve_gf_UnitInRegion(gv_tHE_ONE_DEHAKA, RegionCircle(UnitGetPosition(auto02B9333B_var), CatalogFieldValueGetAsInt(c_gameCatalogUnit, UnitGetType(auto02B9333B_var), "Sight", gv_pLAYER_01_USER))) == true)) {
TriggerEnable(TriggerGetCurrent(), false);
TriggerExecute(gt_DehakaFlee, true, false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:1451
lv_attackTargets = UnitGroup(null, gv_pLAYER_01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
if ((libNtve_gf_UnitIsVisibleToPlayer(gv_zeratul, gv_pLAYER_02_TALDARIM) == false) && (libNtve_gf_UnitIsVisibleToPlayer(gv_zeratul, gv_pLAYER_03_AMON) == false)) {
UnitGroupRemove(lv_attackTargets, gv_zeratul);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:1451
lv_attackTargets = UnitGroup(null, gv_pLAYER_01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
if ((libNtve_gf_UnitIsVisibleToPlayer(gv_zeratul, gv_pLAYER_02_TALDARIM) == false) && (libNtve_gf_UnitIsVisibleToPlayer(gv_zeratul, gv_pLAYER_03_AMON) == false)) {
UnitGroupRemove(lv_attackTargets, gv_zeratul);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map — MapScript.galaxy:2407
UnitGroupLoopBegin(gv_hunterMedivacGroup1);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((libNtve_gf_UnitIsVisibleToPlayer(UnitGroupLoopCurrent(), gv_pLAYER_01_USER) == true) && (UnitIsAlive(UnitGroupLoopCurrent()) == true)) {
if ((lv_first == true)) {
lv_first = false;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar01.sc2map — MapScript.galaxy:4068
if ((gv_zagaraAlive == true) && (gv_inCinematic == false)) {
if ((libNtve_gf_UnitIsVisibleToPlayer(gv_zagara, gv_pLAYER_01_USER) == true)) {
PingSetVisible(gv_zagaraBossPing, true);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar03.sc2map — MapScript.galaxy:446
// Implementation
while (!((gv_inCinematic == false) && (libNtve_gf_UnitIsVisibleToPlayer(lp_uNIT, gv_pLAYER_01_USER) == true))) {
Wait(0.3, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map — MapScript.galaxy:773
autoFA1E7D0E_var = UnitGroupUnitFromEnd(autoFA1E7D0E_g, autoFA1E7D0E_u);
if (autoFA1E7D0E_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(autoFA1E7D0E_var, gv_pLAYER_01_USER) == true)) {
gf_RemoveFlashFreezeFromUnit(autoFA1E7D0E_var);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map — MapScript.galaxy:2053
if (auto39882515_var == null) { break; }
if ((UnitHasBehavior(auto39882515_var, "FlashFreeze") == false)) {
if ((libNtve_gf_UnitIsVisibleToPlayer(auto39882515_var, gv_pLAYER_01_USER) == true)) {
gf_AddFlashFreezetoUnit(auto39882515_var);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map — MapScript.galaxy:1919
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitDamageSourceUnit(), gv_pLAYER_01_USER) == false))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2map — MapScript.galaxy:3932
}
if (((gv_inCinematic == true) || (libNtve_gf_UnitIsVisibleToPlayer(gv_dEHAKA, gv_pLAYER_01_USER) == false))) {
gv_dehakaIdleTime = 0;
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:2351
auto2720FF98_var = UnitGroupUnitFromEnd(auto2720FF98_g, auto2720FF98_u);
if (auto2720FF98_var == null) { break; }
if ((libNtve_gf_UnitInRegion(auto2720FF98_var, lv_searchRegion) == true) && (libNtve_gf_UnitIsVisibleToPlayer(auto2720FF98_var, gv_pLAYER_01_USER) == true)) {
VisRevealArea(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(auto2720FF98_var), 3.0), 0.75, false);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2map — MapScript.galaxy:1489
auto94FE762D_var = UnitGroupUnitFromEnd(auto94FE762D_g, auto94FE762D_u);
if (auto94FE762D_var == null) { break; }
if ((libNtve_gf_UnitInRegion(gv_kerrigan, RegionCircle(UnitGetPosition(auto94FE762D_var), 6.0)) == true) && (libNtve_gf_UnitIsVisibleToPlayer(gv_kerrigan, gv_p05_PRISONERS) == true)) {
gf_FleePrisoners(auto94FE762D_var, UnitGetPosition(gv_kerrigan));
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:1150
lv_indexUnit = UnitGroupUnitFromEnd(auto2934096F_g, auto2934096F_u);
if (lv_indexUnit == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_indexUnit, gv_pLAYER_01_USER) == true)) {
lv_visible = true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:1154
}
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_indexUnit, gv_pLAYER_01_USER) == false)) {
lv_allVisible = false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:3460
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(EventUnitRangeUnit(), gv_pLAYER_01_USER) == true))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:3533
auto02B9333B_var = UnitGroupUnitFromEnd(auto02B9333B_g, auto02B9333B_u);
if (auto02B9333B_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(gv_tHE_ONE_DEHAKA, gv_pLAYER_01_USER) == true) && (libNtve_gf_UnitInRegion(gv_tHE_ONE_DEHAKA, RegionCircle(UnitGetPosition(auto02B9333B_var), CatalogFieldValueGetAsInt(c_gameCatalogUnit, UnitGetType(auto02B9333B_var), "Sight", gv_pLAYER_01_USER))) == true)) {
TriggerEnable(TriggerGetCurrent(), false);
TriggerExecute(gt_DehakaFlee, true, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:1451
lv_attackTargets = UnitGroup(null, gv_pLAYER_01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
if ((libNtve_gf_UnitIsVisibleToPlayer(gv_zeratul, gv_pLAYER_02_TALDARIM) == false) && (libNtve_gf_UnitIsVisibleToPlayer(gv_zeratul, gv_pLAYER_03_AMON) == false)) {
UnitGroupRemove(lv_attackTargets, gv_zeratul);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:1451
lv_attackTargets = UnitGroup(null, gv_pLAYER_01_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
if ((libNtve_gf_UnitIsVisibleToPlayer(gv_zeratul, gv_pLAYER_02_TALDARIM) == false) && (libNtve_gf_UnitIsVisibleToPlayer(gv_zeratul, gv_pLAYER_03_AMON) == false)) {
UnitGroupRemove(lv_attackTargets, gv_zeratul);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:948
}
if ((libNtve_gf_UnitIsVisibleToPlayer(lp_unit, 1) == true)) {
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "TalkIcon", UnitGetPosition(lp_unit), ColorWithAlpha(100.00, 100.00, 100.00, 0.00), 2.0, 270.0);
lv_ping = PingLastCreated();
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:2636
UnitGroupAdd(lib281DEC45_gv_zSS_PlanetSetUnits, lp_unit);
UnitGroupAdd(lib281DEC45_gv_zSS_VisibleUnits, lp_unit);
if ((lib281DEC45_gv_zSS_StoryUnitsVisible == false) && (libNtve_gf_UnitIsVisibleToPlayer(lp_unit, 1) == true)) {
libNtve_gf_ShowHideUnit(lp_unit, false);
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:2639
libNtve_gf_ShowHideUnit(lp_unit, false);
}
else if ((lib281DEC45_gv_zSS_StoryUnitsVisible == true) && (libNtve_gf_UnitIsVisibleToPlayer(lp_unit, 1) == false)) {
libNtve_gf_ShowHideUnit(lp_unit, true);
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:4126
// Implementation
if (((lib281DEC45_gf_CharacterUnit(lp_lookingCharacter) == null) || (libNtve_gf_UnitIsVisibleToPlayer(lib281DEC45_gf_CharacterUnit(lp_lookingCharacter), 1) == false))) {
return ;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:2722
auto075978B0_var = UnitGroupUnitFromEnd(auto075978B0_g, auto075978B0_u);
if (auto075978B0_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto075978B0_var, gv_pLAYER_01_USER) == true) && (DistanceBetweenPoints(UnitGetPosition(auto075978B0_var), CameraGetTarget(gv_pLAYER_01_USER)) <= 20.0)) {
lv_nearbyZergGroup = UnitGroupEmpty();
lv_nearbyZergGroup = UnitGroup(null, gv_pLAYER_02_DOMINION2, RegionCircle(UnitGetPosition(auto075978B0_var), 12.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:2839
lv_nullCircuit = gv_nullCircuits[lv_i];
if ((UnitGetType(lv_nullCircuit) == "NullCircuit")) {
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_nullCircuit, gv_pLAYER_01_USER) == true) && (libHots_gf_PingStoredForUnit(lv_nullCircuit, 1) == c_invalidPingId)) {
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(lv_nullCircuit), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0, 270.0);
PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/10DFB082"));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:2722
auto075978B0_var = UnitGroupUnitFromEnd(auto075978B0_g, auto075978B0_u);
if (auto075978B0_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto075978B0_var, gv_pLAYER_01_USER) == true) && (DistanceBetweenPoints(UnitGetPosition(auto075978B0_var), CameraGetTarget(gv_pLAYER_01_USER)) <= 20.0)) {
lv_nearbyZergGroup = UnitGroupEmpty();
lv_nearbyZergGroup = UnitGroup(null, gv_pLAYER_02_DOMINION2, RegionCircle(UnitGetPosition(auto075978B0_var), 12.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2map — MapScript.galaxy:2839
lv_nullCircuit = gv_nullCircuits[lv_i];
if ((UnitGetType(lv_nullCircuit) == "NullCircuit")) {
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_nullCircuit, gv_pLAYER_01_USER) == true) && (libHots_gf_PingStoredForUnit(lv_nullCircuit, 1) == c_invalidPingId)) {
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(lv_nullCircuit), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0, 270.0);
PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/10DFB082"));
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2869
}
if ((libNtve_gf_UnitIsVisibleToPlayer(lp_unit, 1) == true)) {
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "TalkIcon", PointWithOffset(UnitGetPosition(lp_unit), 0.5, 3.5), ColorWithAlpha(100.00, 100.00, 100.00, 0.00), 2.0, 270.0);
lv_ping = PingLastCreated();
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:2318
lv_indexClickable = UserDataInstance("Clickable", auto67E2991E_ai);
if ((libVCST_gf_ClickableUnit(lv_indexClickable) != null)) {
if ((libNtve_gf_UnitIsVisibleToPlayer(libVCST_gf_ClickableUnit(lv_indexClickable), 1) == true)) {
libVCST_gf_PS_ClickableSetIsVisibleOnSet(lv_indexClickable, true);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4349
}
if (((libVCST_gf_ClickableUnit(lp_clickableInstance) == null) || (libNtve_gf_UnitIsVisibleToPlayer(libVCST_gf_ClickableUnit(lp_clickableInstance), 1) == false))) {
return ;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:9356
}
if (!((libNtve_gf_UnitIsVisibleToPlayer(libVCUI_gv_pU_BB_Boss, EventPlayer()) == true))) {
return false;
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1556
auto80C04C16_var = UnitGroupUnitFromEnd(auto80C04C16_g, auto80C04C16_u);
if (auto80C04C16_var == null) { break; }
if (((UnitGetType(auto80C04C16_var) == "FootmanMinion") || (UnitGetType(auto80C04C16_var) == "WizardMinion") || (UnitGetType(auto80C04C16_var) == "RangedMinion")) && (libNtve_gf_UnitIsVisibleToPlayer(auto80C04C16_var, 1) == true)) {
UnitGroupAdd(lv_chaosCinematicMinions, auto80C04C16_var);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:6904
lv_itLocus = UnitGroupUnitFromEnd(autoE87890E0_g, autoE87890E0_u);
if (lv_itLocus == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_itLocus, libStEx_gv_pLAYER_07_CHAOS2) == true)) {
break;
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1556
auto80C04C16_var = UnitGroupUnitFromEnd(auto80C04C16_g, auto80C04C16_u);
if (auto80C04C16_var == null) { break; }
if (((UnitGetType(auto80C04C16_var) == "FootmanMinion") || (UnitGetType(auto80C04C16_var) == "WizardMinion") || (UnitGetType(auto80C04C16_var) == "RangedMinion")) && (libNtve_gf_UnitIsVisibleToPlayer(auto80C04C16_var, 1) == true)) {
UnitGroupAdd(lv_chaosCinematicMinions, auto80C04C16_var);
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:6904
lv_itLocus = UnitGroupUnitFromEnd(autoE87890E0_g, autoE87890E0_u);
if (lv_itLocus == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_itLocus, libStEx_gv_pLAYER_07_CHAOS2) == true)) {
break;
}
mods/heroesbrawlmods/arenamodemods/gardenarena.stormmod — base.stormdata/LibAMGT.galaxy:1489
lv_itTeam = 1;
for ( ; ( (auto740A6C94_ai >= 0 && lv_itTeam <= auto740A6C94_ae) || (auto740A6C94_ai < 0 && lv_itTeam >= auto740A6C94_ae) ) ; lv_itTeam += auto740A6C94_ai ) {
if ((lv_visionShared[lv_itTeam] == false) && (libNtve_gf_UnitIsVisibleToPlayer(lv_seed, libGame_gf_ComputerPlayerInTeam(lv_itTeam)) == true)) {
libNtve_gf_ShareVisionofUnit(lv_seed, true, libGame_gf_ComputerPlayerInTeam(lv_itTeam));
lv_visionShared[lv_itTeam] = true;
mods/heroesbrawlmods/arenamodemods/punisherarena.stormmod — base.stormdata/LibAMPU.galaxy:815
lv_itHero = UnitGroupUnitFromEnd(auto33C95EFB_g, auto33C95EFB_u);
if (lv_itHero == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_itHero, UnitGetOwner(libAMPU_gv_aRMPunisherPunishers[lp_team].lv_unit)) == false)) {
UnitGroupRemove(lv_heroGroup, lv_itHero);
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:608
}
if ((TimerGetRemaining(lv_deepTunnelCooldown) < 0.1) && (libNtve_gf_UnitIsVisibleToPlayer(lv_abathur, libStEx_gv_pLAYER_11_ORDER) == true) && (UnitGroupCount(UnitGroupAlliance(libStEx_gv_pLAYER_12_CHAOS, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lv_abathur), 13.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0)) {
lv_deepTunnelLocation = libPEB1_gf_DeepTunnelTeleportLocation(UnitGetPosition(lv_abathur));
if ((lv_deepTunnelLocation != null)) {
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:2246
lv_nearbyUnit = UnitGroupUnitFromEnd(autoC1F27D16_g, autoC1F27D16_u);
if (lv_nearbyUnit == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_nearbyUnit, libCore_gv_cOMPUTER_TeamChaos) == true)) {
return true;
}
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:2301
}
if ((UnitTestState(auto8D9C744C_var, c_unitStateCloaked) == true) && (libNtve_gf_UnitIsVisibleToPlayer(auto8D9C744C_var, libCore_gv_cOMPUTER_TeamChaos) == false)) {
UnitGroupRemove(lv_validUnits, auto8D9C744C_var);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:512
}
if ((TimerGetRemaining(lv_deepTunnelCooldown) < 0.1) && (libNtve_gf_UnitIsVisibleToPlayer(lv_abathur, libStEx_gv_pLAYER_11_ORDER) == true) && (UnitGroupCount(UnitGroupAlliance(libStEx_gv_pLAYER_12_CHAOS, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lv_abathur), 13.0), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterItem), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterBenign - 32))), 1), c_unitCountAlive) > 0)) {
lv_deepTunnelLocation = libPEB1_gf_DeepTunnelTeleportLocation(UnitGetPosition(lv_abathur));
if ((lv_deepTunnelLocation != null)) {
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:6380
if ((lv_visionGained == false)) {
if ((libNtve_gf_UnitIsVisibleToPlayer(UnitGroupUnit(libPEB1_gv_marineEvent2Marines, 1), libCore_gv_cOMPUTER_TeamOrder) == true)) {
lv_playerUnits = UnitGroupAlliance(libCore_gv_cOMPUTER_TeamOrder, c_unitAllianceAlly, RegionCircle(UnitGetPosition(UnitGroupUnit(libPEB1_gv_marineEvent2Marines, 1)), 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
UnitGroupRemoveUnitGroup(lv_playerUnits, libPEB1_gv_marineEvent2Marines);
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:1957
lv_itPickupUnit = UnitGroupUnitFromEnd(auto7E962351_g, auto7E962351_u);
if (lv_itPickupUnit == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(lv_itPickupUnit, libCore_gv_cOMPUTER_TeamOrder) == true)) {
UnitBehaviorAddPlayer(lv_itPickupUnit, "PickupRevealer", libStEx_gv_pLAYER_11_ORDER, 1);
UnitGroupRemove(libPVEB_gv_pvEPickupPreplacedPickups, lv_itPickupUnit);