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

◆ SendNotificationToPlayerIdentityExtended()

static void NotificationSystem::SendNotificationToPlayerIdentityExtended ( PlayerIdentity player,
float show_time,
string title_text,
string detail_text = "",
string icon = "" )
inlinestaticprotected

Send custom notification to player identity from server.

Аргументы
playerthe target player to send notification to - if null, will send to all players
show_timeamount of time this notification is displayed
title_textthe title text that is displayed in the notification
detail_textadditional text that can be added to the notification under the title - will not display additional text if not set
iconthe icon that is displayed in the notification - will use default icon if not set

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

142 {
143 ScriptRPC rpc = new ScriptRPC();
144
145 rpc.Write(show_time);
146 rpc.Write(title_text);
147 rpc.Write(detail_text);
148 rpc.Write(icon);
149
150 rpc.Send(null, ERPCs.RPC_SEND_NOTIFICATION_EXTENDED, true, player);
151 }
ERPCs
Определения ERPCs.c:2
proto native void Send(Object target, int rpc_type, bool guaranteed, PlayerIdentity recipient=NULL)
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on ser...
proto bool Write(void value_out)

Перекрестные ссылки ScriptRPC::Send() и Serializer::Write().

Используется в SendNotificationToPlayerExtended().