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

◆ SendNotificationToPlayerIdentity()

static void NotificationSystem::SendNotificationToPlayerIdentity ( PlayerIdentity player,
NotificationType type,
float show_time,
string detail_text = "" )
inlinestaticprotected

Send notification from default types to player identity from server.

Аргументы
playerthe target player to send notification to - if null, will send to all players
typethe type of notification to send - these can be viewed in /Scripts/Data/Notifications.json
show_timeamount of time this notification is displayed
detail_textadditional text that can be added to the notification under the title - will not display additional text if not set

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

176 {
177 ScriptRPC rpc = new ScriptRPC();
178
179 rpc.Write(type);
180 rpc.Write(show_time);
181 rpc.Write(detail_text);
182
183 rpc.Send(null, ERPCs.RPC_SEND_NOTIFICATION, true, player);
184 }
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().

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