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-04-17 23:13:09 +00:00
|
|
|
PARAMS_3(_logic,_units,_activated);
|
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 {
|
2015-04-17 23:13:09 +00:00
|
|
|
missionNamespace setVariable [QGVAR(showFriendlyFireMessage), true];
|
|
|
|
publicVariable QGVAR(showFriendlyFireMessage);
|
2015-01-13 14:28:03 +00:00
|
|
|
};
|
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
|
|
|
};
|