# 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.sc2mod

NativeLib.galaxy

// L4569
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)
// L4576
TransmissionSendForPlayer(lp_Players, lp_Source, lp_Target, "", lp_PortraitAnim, lp_Sound, lp_Speaker, lp_Subtitle, lp_Duration, lp_DurationType, lp_WaitUntilDone, c_maxPlayers)
// L3827
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)
// L3834
TransmissionSendForPlayer(lp_Players, lp_Source, lp_Target, "", lp_PortraitAnim, lp_Sound, lp_Speaker, lp_Subtitle, lp_Duration, lp_DurationType, lp_WaitUntilDone, c_maxPlayers)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L19160
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)
// L19171
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)
// L19180
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.stormmod

HeroesLib.galaxy

// L3659
TransmissionSendForPlayer(PlayerGroupAll(), lv_source, lv_portrait, lp_portraitActor, "Talk", lp_sound, lp_speaker, lp_message, lp_duration, lp_durationType, lp_waitUntilDone, c_maxPlayers)
// L3860
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)