# Send Transmission For Player

Grammar — Send transmission to Players from Source playing Sound with name Speaker and message Subtitle using Target with portraitActor playing PortraitAnim|Anim (DurationType Duration seconds, WaitUntilDone|Wait/Don’t Wait until it finishes, owning player player)
FlagsNative | Action

Sends a transmission with sound and an optional portrait actor to the specified players from a source unit or model. Use “Last Sent Transmission” to refer to this transmission after it has begun.

# Arguments

  • playergroup — Players
  • transmissionsource — Source
  • int<portrait> — Portrait
  • string — Portrait Actor
  • string<modelanim> — Portrait Anim
  • soundlink — Sound
  • text — Name
  • text — Message
  • fixed — Duration
  • int<preset::TransmissionDurationType> — DurationType
  • bool<preset::Trigger_Wait_Option> — WaitUntilDone
  • int — Player
  • bool — Is Select

Returns — int<transmission>

native int TransmissionSendForPlayerSelect(
	playergroup Players,
	transmissionsource Source,
	int Target,
	string portraitActor,
	string PortraitAnim,
	soundlink inSound,
	text Speaker,
	text Subtitle,
	fixed Duration,
	int DurationType,
	bool WaitUntilDone,
	int player,
	bool isSelect,
);

Category: Transmission / Basics

# Examples

mods/heroesbrawlmods/arenamodemods/punisherarena.stormmodbase.stormdata/LibAMPU.galaxy:1584

    // Implementation
    TriggerQueueEnter();
    TransmissionSendForPlayerSelect(libGame_gf_PlayersOnTeamHeroes(lp_team, false), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLink(ConversationDataGetSound("CreepVO|Line00308", false), c_soundIndexAny), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    TriggerQueueExit();
    return true;

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4096

    auto72F7C5EA_val = lp_killedUnitType;
    if (auto72F7C5EA_val == "HeroButcher") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("DeadmanPVEVO_MiraHan_104"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto72F7C5EA_val == "HeroKerrigan") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4099

    }
    else if (auto72F7C5EA_val == "HeroKerrigan") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("DeadmanPVEVO_MiraHan_105"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto72F7C5EA_val == "HeroDiablo") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4102

    }
    else if (auto72F7C5EA_val == "HeroDiablo") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("DeadmanPVEVO_MiraHan_106"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto72F7C5EA_val == "HeroZagara") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4105

    }
    else if (auto72F7C5EA_val == "HeroZagara") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("DeadmanPVEVO_MiraHan_107"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto72F7C5EA_val == "HeroDehaka") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4108

    }
    else if (auto72F7C5EA_val == "HeroDehaka") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("DeadmanPVEVO_MiraHan_108"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto72F7C5EA_val == "HeroTychus") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4111

    }
    else if (auto72F7C5EA_val == "HeroTychus") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("DeadmanPVEVO_MiraHan_109"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto72F7C5EA_val == "HeroMurky") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4114

    }
    else if (auto72F7C5EA_val == "HeroMurky") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("DeadmanPVEVO_MiraHan_110"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto72F7C5EA_val == "HeroAnubarak") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4117

    }
    else if (auto72F7C5EA_val == "HeroAnubarak") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("DeadmanPVEVO_MiraHan_111"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto72F7C5EA_val == "HeroAbathur") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4120

    }
    else if (auto72F7C5EA_val == "HeroAbathur") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("DeadmanPVEVO_MiraHan_113"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto72F7C5EA_val == "HeroStitches") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4123

    }
    else if (auto72F7C5EA_val == "HeroStitches") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("DeadmanPVEVO_MiraHan_116"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto72F7C5EA_val == "HeroStukov") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2219

    auto2BBC6A38_val = lp_killedUnitType;
    if (auto2BBC6A38_val == "HeroButcher") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("AdjutantPVEVO_Adjutant_084"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto2BBC6A38_val == "HeroKerrigan") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2222

    }
    else if (auto2BBC6A38_val == "HeroKerrigan") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("AdjutantPVEVO_Adjutant_085"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto2BBC6A38_val == "HeroDiablo") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2225

    }
    else if (auto2BBC6A38_val == "HeroDiablo") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("AdjutantPVEVO_Adjutant_086"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto2BBC6A38_val == "HeroZagara") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2228

    }
    else if (auto2BBC6A38_val == "HeroZagara") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("AdjutantPVEVO_Adjutant_087"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto2BBC6A38_val == "HeroDehaka") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2231

    }
    else if (auto2BBC6A38_val == "HeroDehaka") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("AdjutantPVEVO_Adjutant_088"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto2BBC6A38_val == "HeroTychus") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2234

    }
    else if (auto2BBC6A38_val == "HeroTychus") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("AdjutantPVEVO_Adjutant_089"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto2BBC6A38_val == "HeroMurky") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2237

    }
    else if (auto2BBC6A38_val == "HeroMurky") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("AdjutantPVEVO_Adjutant_091"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto2BBC6A38_val == "HeroAnubarak") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2240

    }
    else if (auto2BBC6A38_val == "HeroAnubarak") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("AdjutantPVEVO_Adjutant_092"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto2BBC6A38_val == "HeroAbathur") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2243

    }
    else if (auto2BBC6A38_val == "HeroAbathur") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("AdjutantPVEVO_Adjutant_093"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto2BBC6A38_val == "HeroStitches") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:2246

    }
    else if (auto2BBC6A38_val == "HeroStitches") {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex("AdjutantPVEVO_Adjutant_105"), null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else if (auto2BBC6A38_val == "HeroStukov") {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:16028


    if (((libGame_gv_players[UnitGetOwner(lv_cargoUnit)].lv_activeVehicle != null) && (UnitGetType(libGame_gv_players[UnitGetOwner(lv_cargoUnit)].lv_heroUnit) == "HeroAbathur"))) {
        TransmissionSendForPlayerSelect(PlayerGroupSingle(UnitGetOwner(lv_cargoUnit)), TransmissionSourceFromUnit(libGame_gv_players[UnitGetOwner(lv_cargoUnit)].lv_activeVehicle, false, true, ""), PortraitGetGame(), "", "Stand", null, StringExternal("Param/Value/lib_GDHL_4FE2EF61"), StringToText(""), 60.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
        libGDHL_gv_medivacTransmissionPortraitOverride[UnitGetOwner(lv_cargoUnit)] = TransmissionLastSent();
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:16032

    }
    else {
        TransmissionSendForPlayerSelect(PlayerGroupSingle(UnitGetOwner(lv_cargoUnit)), TransmissionSourceFromUnit(libGame_gv_players[UnitGetOwner(lv_cargoUnit)].lv_heroUnit, false, true, ""), PortraitGetGame(), "", "Stand", null, StringExternal("Param/Value/lib_GDHL_8F93019A"), StringToText(""), 60.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
        libGDHL_gv_medivacTransmissionPortraitOverride[UnitGetOwner(lv_cargoUnit)] = TransmissionLastSent();
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19144

            UnitBehaviorRemove(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], "RexxarMishaFocussedOnPoint", 1);
            UnitBehaviorAddPlayer(libGDHL_gv_rexxarMishaUnit[lv_rexxarPlayer], "RexxarMishaFocussedOnUnit", lv_rexxarPlayer, 1);
            TransmissionSendForPlayerSelect(PlayerGroupSingle(lv_rexxarPlayer), TransmissionSourceFromUnit(libGame_gv_players[lv_rexxarPlayer].lv_heroUnit, false, true, ""), PortraitGetGame(), "", "Talk", SoundLink("RexxarBase_Misha_FocusUnit", c_soundIndexAny), StringToText(""), StringToText(""), 0.0, c_transmissionDurationAdd, false, lv_rexxarPlayer, false);
        }
        else {

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

    libGame_gf_SendEventGameLoadedUIHook();
    if ((libStEx_gv_tradeShowMovieLink != null)) {
        TransmissionSendForPlayerSelect(PlayerGroupAll(), TransmissionSourceFromMovie(libStEx_gv_tradeShowMovieLink, true), libNtve_gf_FullscreenPortrait(), "", "Talk", null, null, null, 0.0, c_transmissionDurationAdd, true, c_maxPlayers, false);
    }
    else {

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:2722

                    autoFCE8A238_val = RandomInt(1, 9);
                    if (autoFCE8A238_val == 1) {
                        TransmissionSendForPlayerSelect(libGame_gf_PlayersOnTeamHeroes(lv_teamIndex, false), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex(ConversationDataGetSound("HoldoutVO|Line00032", false)), null, null, 0.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
                    }
                    else if (autoFCE8A238_val == 2) {

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:2725

                    }
                    else if (autoFCE8A238_val == 2) {
                        TransmissionSendForPlayerSelect(libGame_gf_PlayersOnTeamHeroes(lv_teamIndex, false), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex(ConversationDataGetSound("HoldoutVO|Line00033", false)), null, null, 0.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
                    }
                    else if (autoFCE8A238_val == 3) {

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:2728

                    }
                    else if (autoFCE8A238_val == 3) {
                        TransmissionSendForPlayerSelect(libGame_gf_PlayersOnTeamHeroes(lv_teamIndex, false), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex(ConversationDataGetSound("HoldoutVO|Line00034", false)), null, null, 0.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
                    }
                    else if (autoFCE8A238_val == 4) {

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:2731

                    }
                    else if (autoFCE8A238_val == 4) {
                        TransmissionSendForPlayerSelect(libGame_gf_PlayersOnTeamHeroes(lv_teamIndex, false), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex(ConversationDataGetSound("HoldoutVO|Line00035", false)), null, null, 0.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
                    }
                    else if (autoFCE8A238_val == 5) {

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:2734

                    }
                    else if (autoFCE8A238_val == 5) {
                        TransmissionSendForPlayerSelect(libGame_gf_PlayersOnTeamHeroes(lv_teamIndex, false), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex(ConversationDataGetSound("HoldoutVO|Line00036", false)), null, null, 0.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
                    }
                    else if (autoFCE8A238_val == 6) {

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:2737

                    }
                    else if (autoFCE8A238_val == 6) {
                        TransmissionSendForPlayerSelect(libGame_gf_PlayersOnTeamHeroes(lv_teamIndex, false), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex(ConversationDataGetSound("HoldoutVO|Line00037", false)), null, null, 0.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
                    }
                    else if (autoFCE8A238_val == 7) {

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:2740

                    }
                    else if (autoFCE8A238_val == 7) {
                        TransmissionSendForPlayerSelect(libGame_gf_PlayersOnTeamHeroes(lv_teamIndex, false), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex(ConversationDataGetSound("HoldoutVO|Line00038", false)), null, null, 0.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
                    }
                    else if (autoFCE8A238_val == 8) {

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:2743

                    }
                    else if (autoFCE8A238_val == 8) {
                        TransmissionSendForPlayerSelect(libGame_gf_PlayersOnTeamHeroes(lv_teamIndex, false), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex(ConversationDataGetSound("HoldoutVO|Line00039", false)), null, null, 0.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
                    }
                    else if (autoFCE8A238_val == 9) {

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:2746

                    }
                    else if (autoFCE8A238_val == 9) {
                        TransmissionSendForPlayerSelect(libGame_gf_PlayersOnTeamHeroes(lv_teamIndex, false), TransmissionSource(), c_invalidPortraitId, "", "Talk", SoundLinkNoIndex(ConversationDataGetSound("HoldoutVO|Line00053", false)), null, null, 0.0, c_transmissionDurationAdd, false, c_maxPlayers, false);
                    }
                    else {