mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
34 lines
818 B
Plaintext
34 lines
818 B
Plaintext
/*
|
|
DMS_BroadcastMissionStatus
|
|
Created by eraser1
|
|
|
|
Usage:
|
|
_message call DMS_BroadcastMissionStatus;
|
|
|
|
Requires "DMS_PlayerNotificationTypes".
|
|
|
|
Notification type "dynamicTextRequest" requires "DMS_dynamicText_Size" and "DMS_dynamicText_Color".
|
|
*/
|
|
|
|
|
|
if (DMS_DEBUG) then
|
|
{
|
|
diag_log format["DMS_DEBUG BroadcastMissionStatus :: Notification types: |%1| for broadcasting mission status: %2",DMS_PlayerNotificationTypes,_this];
|
|
};
|
|
|
|
if ((typeName _this) != "STRING") then
|
|
{
|
|
_this = str _this;
|
|
};
|
|
|
|
{
|
|
private "_args";
|
|
|
|
_args = // Only include extra parameters if using "dynamicTextRequest"
|
|
[
|
|
[_x, [_this]],
|
|
[_x, [_this,0,DMS_dynamicText_Size,DMS_dynamicText_Color]]
|
|
] select (_x == "dynamicTextRequest");
|
|
|
|
_args call ExileServer_system_network_send_broadcast;
|
|
} forEach DMS_PlayerNotificationTypes; |