ACE3/addons/respawn/functions/fnc_moduleFriendlyFire.sqf

33 lines
616 B
Plaintext
Raw Normal View History

2015-01-12 09:07:03 +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 {
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
ACE_LOGINFO("Friendly Fire Messages Module Initialized.");
2015-01-12 09:07:03 +00:00
};