# Player Has Active Transmission

Grammar — Player player Has Active Transmission
FlagsNative | Function

Returns whether any transmissions are active for the specified player.

# Arguments

  • int — Player

Returns — bool

native bool TransmissionPlayerHasActiveTransmission(
	int inPlayerId,
);

Category: Transmission / Basics

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:3368


    TriggerEnable(TriggerGetCurrent(), false);
    if ((TransmissionPlayerHasActiveTransmission(gv_pLAYER_01_USER) == false)) {
        gv_purifierWardenBattlecryCount += 1;
        TriggerQueueEnter();

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2mapMapScript.galaxy:3368


    TriggerEnable(TriggerGetCurrent(), false);
    if ((TransmissionPlayerHasActiveTransmission(gv_pLAYER_01_USER) == false)) {
        gv_purifierWardenBattlecryCount += 1;
        TriggerQueueEnter();

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:6805

    }

    if ((TransmissionPlayerHasActiveTransmission(1) == true)) {
        return true;
    }

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:112

            	lv_itPlayer = PlayerGroupNextPlayer(auto0249858B_g, lv_itPlayer);
            	if (lv_itPlayer<0) { break; }
            	if ((TransmissionPlayerHasActiveTransmission(lv_itPlayer) == true)) {
                lv_finished = false;
                break;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:4059

            	lv_itPlayer = PlayerGroupNextPlayer(autoBB4504D2_g, lv_itPlayer);
            	if (lv_itPlayer<0) { break; }
            	if ((TransmissionPlayerHasActiveTransmission(lv_itPlayer) == true)) {
                lv_finished = false;
                break;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:5820

        }

        if (!((TransmissionPlayerHasActiveTransmission(1) == false))) {
            return false;
        }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:6144

        }

        if (!((TransmissionPlayerHasActiveTransmission(1) == false))) {
            return false;
        }

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:4674

    lv_unit01 = UnitGroupUnit(UnitGroup(null, gv_pLAYER_06_DEFENDERSOFMAN, RegionFromId(64), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), 1);
    lv_unit02 = UnitGroupUnit(UnitGroup(null, gv_pLAYER_06_DEFENDERSOFMAN, RegionFromId(64), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), 2);
    if ((TransmissionPlayerHasActiveTransmission(gv_pLAYER_01_USER) == false)) {
        TriggerQueueEnter();
        libComC_gf_SetAllSoundChannelVolumesCampaign(libComC_ge_VolumeChannelModeCampaign_Speech);

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:4735

    lv_unit01 = UnitFromId(104);
    lv_unit02 = UnitFromId(106);
    if ((TransmissionPlayerHasActiveTransmission(gv_pLAYER_01_USER) == false)) {
        TriggerQueueEnter();
        libComC_gf_SetAllSoundChannelVolumesCampaign(libComC_ge_VolumeChannelModeCampaign_Speech);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:4674

    lv_unit01 = UnitGroupUnit(UnitGroup(null, gv_pLAYER_06_DEFENDERSOFMAN, RegionFromId(64), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), 1);
    lv_unit02 = UnitGroupUnit(UnitGroup(null, gv_pLAYER_06_DEFENDERSOFMAN, RegionFromId(64), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), 2);
    if ((TransmissionPlayerHasActiveTransmission(gv_pLAYER_01_USER) == false)) {
        TriggerQueueEnter();
        libComC_gf_SetAllSoundChannelVolumesCampaign(libComC_ge_VolumeChannelModeCampaign_Speech);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:4735

    lv_unit01 = UnitFromId(104);
    lv_unit02 = UnitFromId(106);
    if ((TransmissionPlayerHasActiveTransmission(gv_pLAYER_01_USER) == false)) {
        TriggerQueueEnter();
        libComC_gf_SetAllSoundChannelVolumesCampaign(libComC_ge_VolumeChannelModeCampaign_Speech);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:10687

    }

    if ((TransmissionPlayerHasActiveTransmission(lp_player) == false)) {
        return false;
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:5852

    }
    ConversationDataRun(UserDataGetGameLink("MissionTransmission", libCOMI_gv_cM_TransmissionCurrentType, "Conversation", 1), PlayerGroupAll(), c_conversationSkipNone, true);
    while (!((TransmissionPlayerHasActiveTransmission(1) == false) && (TransmissionPlayerHasActiveTransmission(2) == false))) {
        Wait(0.0625, c_timeGame);
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:5852

    }
    ConversationDataRun(UserDataGetGameLink("MissionTransmission", libCOMI_gv_cM_TransmissionCurrentType, "Conversation", 1), PlayerGroupAll(), c_conversationSkipNone, true);
    while (!((TransmissionPlayerHasActiveTransmission(1) == false) && (TransmissionPlayerHasActiveTransmission(2) == false))) {
        Wait(0.0625, c_timeGame);
    }