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

◆ SendMessageToClient()

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

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

1132 {
1133 PlayerBase man;
1134 if (GetGame().IsServer() && Class.CastTo(man, reciever) && m_MessageParam && reciever.IsAlive() && message != "")
1135 {
1136 m_MessageParam.param1 = message;
1137 GetGame().RPCSingleParam(man, ERPCs.RPC_USER_ACTION_MESSAGE, m_MessageParam, true, man.GetIdentity());
1138 }
1139 }
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().