DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SendMessageToClient()

void ActionBase::SendMessageToClient ( Object reciever,
string message )
inlineprotected

См. определение в файле ActionBase.c строка 1170

1171 {
1172 PlayerBase man;
1173 if (GetGame().IsServer() && Class.CastTo(man, reciever) && m_MessageParam && reciever.IsAlive() && message != "")
1174 {
1175 m_MessageParam.param1 = message;
1176 GetGame().RPCSingleParam(man, ERPCs.RPC_USER_ACTION_MESSAGE, m_MessageParam, true, man.GetIdentity());
1177 }
1178 }
ERPCs
Определения ERPCs.c:2
ref Param1< string > m_MessageParam
Определения ActionBase.c:73
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
proto native CGame GetGame()

Перекрестные ссылки Class::CastTo(), GetGame(), m_MessageParam и CGame::RPCSingleParam().

Используется в ActionDisinfectPlantBit::OnExecuteServer().