# Send Transmission For Player (deprecated)

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 | Hidden

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

Returns — int<transmission>

native int TransmissionSendForPlayer(
	playergroup players,
	transmissionsource source,
	int targetPortrait,
	string actorLink,
	string targetAnim,
	soundlink soundLink,
	text speaker,
	text subtitle,
	fixed duration,
	int durationType,
	bool waitUntilDone,
	int owningPlayer,
);

Category: Transmission / Basics

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:4569

    // Automatic Variable Declarations
    // Implementation
    TransmissionSendForPlayer(lp_Players, lp_Source, lp_Target, lp_portraitActor, lp_PortraitAnim, lp_Sound, lp_Speaker, lp_Subtitle, lp_Duration, lp_DurationType, lp_WaitUntilDone, c_maxPlayers);
    return TransmissionLastSent();
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:4576

    // Automatic Variable Declarations
    // Implementation
    TransmissionSendForPlayer(lp_Players, lp_Source, lp_Target, "", lp_PortraitAnim, lp_Sound, lp_Speaker, lp_Subtitle, lp_Duration, lp_DurationType, lp_WaitUntilDone, c_maxPlayers);
    return TransmissionLastSent();
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3827

    // Automatic Variable Declarations
    // Implementation
    TransmissionSendForPlayer(lp_Players, lp_Source, lp_Target, lp_portraitActor, lp_PortraitAnim, lp_Sound, lp_Speaker, lp_Subtitle, lp_Duration, lp_DurationType, lp_WaitUntilDone, c_maxPlayers);
    return TransmissionLastSent();
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3834

    // Automatic Variable Declarations
    // Implementation
    TransmissionSendForPlayer(lp_Players, lp_Source, lp_Target, "", lp_PortraitAnim, lp_Sound, lp_Speaker, lp_Subtitle, lp_Duration, lp_DurationType, lp_WaitUntilDone, c_maxPlayers);
    return TransmissionLastSent();
}

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

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

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

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

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

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

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

    }

    TransmissionSendForPlayer(PlayerGroupAll(), lv_source, lv_portrait, lp_portraitActor, "Talk", lp_sound, lp_speaker, lp_message, lp_duration, lp_durationType, lp_waitUntilDone, c_maxPlayers);
    if ((lp_waitUntilDone == false)) {
        libCore_gf_ZS_SendTransmissionCampaignCleanUp(TransmissionLastSent(), lp_keepPortraitVisible, lv_portrait, lv_talkBubble, lv_talkRing, lv_ping, lv_localIndex);

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

    }

    TransmissionSendForPlayer(PlayerGroupSingle(lp_player), lv_source, lv_portrait, lp_portraitActor, "Talk", lp_sound, lp_speaker, lp_message, lp_duration, lp_durationType, lp_waitUntilDone, c_maxPlayers);
    if ((lp_waitUntilDone == false)) {
        libCore_gf_ZS_SendTransmissionCampaignCleanUp2(TransmissionLastSent(), lp_keepPortraitVisible, lv_portrait, lv_talkBubble, lv_talkRing, lv_ping, lv_localIndex, lp_player);