2015-01-12 09:07:03 +00:00
|
|
|
/*
|
2015-01-12 10:24:58 +00:00
|
|
|
Name: ACE_Respawn_fnc_moduleFriendlyFire
|
2015-08-26 13:20:11 +00:00
|
|
|
|
2015-01-12 10:24:58 +00:00
|
|
|
Author(s):
|
|
|
|
commy2
|
2015-08-26 13:20:11 +00:00
|
|
|
|
2015-01-12 10:24:58 +00:00
|
|
|
Description:
|
|
|
|
initializes the Friendly Fire Messages module
|
2015-08-26 13:20:11 +00:00
|
|
|
|
2015-01-12 10:24:58 +00:00
|
|
|
Parameters:
|
|
|
|
0: OBJECT - logic
|
|
|
|
1: ARRAY<OBJECT> - synced units
|
|
|
|
2: BOOLEAN - activated
|
2015-08-26 13:20:11 +00:00
|
|
|
|
2015-01-12 10:24:58 +00:00
|
|
|
Returns:
|
|
|
|
VOID
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
2015-01-12 09:07:03 +00:00
|
|
|
|
|
|
|
_this spawn {
|
2015-08-26 13:20:11 +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-08-26 13:20:11 +00:00
|
|
|
ACE_LOGINFO("Friendly Fire Messages Module Initialized.");
|
2015-01-12 09:07:03 +00:00
|
|
|
};
|