DMS_Exile/@ExileServer/addons/a3_dms/scripts/fn_BroadcastMissionStatus.sqf
eraser1 687bbfb798 Use config function definitions
Thanks for the tip Zupa!
2015-09-04 22:40:00 -05:00

34 lines
826 B
Plaintext

/*
DMS_fnc_BroadcastMissionStatus
Created by eraser1
Usage:
_message call DMS_fnc_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;