2015-01-12 09:07:03 +00:00
|
|
|
/*
|
2015-01-12 10:24:58 +00:00
|
|
|
Name: ACE_Respawn_fnc_moduleFriendlyFire
|
|
|
|
|
|
|
|
Author(s):
|
|
|
|
commy2
|
|
|
|
|
|
|
|
Description:
|
|
|
|
initializes the Friendly Fire Messages module
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
0: OBJECT - logic
|
|
|
|
1: ARRAY<OBJECT> - synced units
|
|
|
|
2: BOOLEAN - activated
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
VOID
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
2015-01-12 09:07:03 +00:00
|
|
|
|
|
|
|
_this spawn {
|
2015-01-13 14:28:03 +00:00
|
|
|
_logic = _this select 0;
|
|
|
|
_units = _this select 1;
|
|
|
|
_activated = _this select 2;
|
2015-01-12 09:07:03 +00:00
|
|
|
|
2015-01-13 14:28:03 +00:00
|
|
|
if !(_activated) exitWith {};
|
2015-01-12 09:07:03 +00:00
|
|
|
|
2015-01-13 14:28:03 +00:00
|
|
|
if (isServer) then {
|
|
|
|
_varName = QGVAR(showFriendlyFireMessage);
|
2015-01-12 09:07:03 +00:00
|
|
|
|
2015-01-13 14:28:03 +00:00
|
|
|
missionNamespace setVariable [_varName, true];
|
|
|
|
publicVariable _varName;
|
|
|
|
};
|
2015-01-12 09:07:03 +00:00
|
|
|
|
2015-01-13 14:28:03 +00:00
|
|
|
diag_log text "[ACE]: Friendly Fire Messages Module Initialized.";
|
2015-01-12 09:07:03 +00:00
|
|
|
};
|