mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
34 lines
699 B
Plaintext
34 lines
699 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: commy2
|
|
* Initializes the friendly fire module.
|
|
*
|
|
* Arguments:
|
|
* 0: Logic <OBJECT>
|
|
* 1: Synced units <ARRAY>
|
|
* 2: Activated <BOOL>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [logic, [ACE_Player], true] call ace_respawn_fnc_moduleFriendlyFire
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_logic", "_units", "_activated"];
|
|
|
|
if !(_activated) exitWith {};
|
|
|
|
// this is done for JIP compatibility
|
|
if (isServer) then {
|
|
[{
|
|
missionNamespace setVariable [QGVAR(showFriendlyFireMessage), true];
|
|
publicVariable QGVAR(showFriendlyFireMessage);
|
|
},
|
|
[], 0.1] call CBA_fnc_waitAndExecute;
|
|
};
|
|
|
|
INFO("Friendly Fire Messages Module Initialized.");
|