DMS_Exile/@ExileServer/addons/a3_dms/scripts/BroadcastMissionStatus.sqf
2015-09-04 11:35:19 -05:00

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;