# 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)
Flags —Native
|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
— Playerstransmissionsource
— Sourceint
<portrait> — Portraitstring
— Portrait Actorstring
<modelanim> — Portrait Animsoundlink
— Soundtext
— Nametext
— Messagefixed
— Durationint
<preset::TransmissionDurationType> — DurationTypebool
<preset::Trigger_Wait_Option> — WaitUntilDoneint
— 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,
);
# Related
Category: Transmission / Basics
- Send Transmission For Player (deprecated) —
int
<transmission> — TransmissionSendForPlayer - Send Transmission For Player —
int
<transmission> — TransmissionSendForPlayerSelect - Send Transmission (Simple) —
void
— libNtve_gf_SendTransmissionSimple - Last Sent Transmission —
int
<transmission> — TransmissionLastSent - Player Has Active Transmission —
bool
— TransmissionPlayerHasActiveTransmission - Wait For Transmission —
void
— TransmissionWait - Stop Transmission —
void
— TransmissionClear - Stop All Transmissions —
void
— TransmissionClearAll - Stop Group Transmissions —
void
— TransmissionClearGroup - Transmission Is Complete —
bool
— TransmissionIsComplete - Turn Transmission Option On/Off —
void
— TransmissionSetOption - Transmission Comment (Sound)
- Transmission Comment (Conversation)
# Examples
mods/core.sc2mod — base.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.sc2mod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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);