MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SendRadioChat

Function SendRadioChat

engine/Poseidon/Game/Chat.cpp:696–708  ·  view source on GitHub ↗

Sends a radio message on the given channel.

Source from the content-addressed store, hash-verified

694 default:
695 Fail("Bad radio channel");
696 break;
697 }
698}
699
700// Players that can receive a message on the given channel; unit is the sender.
701static void WhatUnits(AIUnit* unit, RefArray<NetworkObject>& units, ChatChannel channel)
702{
703 switch (channel)
704 {
705 case CCVehicle:
706 {
707 Transport* veh = unit->GetVehicleIn();
708 if (veh)
709 {
710 WhatUnitsVehicle(units, veh);
711 }

Callers 1

NextMessageMethod · 0.85

Calls 4

WhatUnitsFunction · 0.85
GetGameStateMethod · 0.45
SizeMethod · 0.45
RadioChatMethod · 0.45

Tested by

no test coverage detected