ACE3/addons/medical/functions/fnc_moduleAssignMedicalFacility.sqf
Dedmen Miller 81e02a7336 Refactor private ARRAY to private keyword (#5598)
* Everything

* Fixed missing ;

* Fix missing ; and double private

* Fixed cannot isNull on number

* Turn _temparture back to isNil

* Fix error from merge
2017-10-10 09:39:59 -05:00

33 lines
685 B
Plaintext

/*
* Author: Glowbal
* Register synchronized objects from passed object as a medical facility
*
* Arguments:
* 0: The module logic <LOGIC>
* 1: units <ARRAY>
* 2: activated <BOOL>
*
* Return Value:
* None
*
* Example:
* [LOGIC, [kevin, bob], true] call ACE_medical_fnc_moduleAssignMedicalFacility
*
* Public: No
*/
#include "script_component.hpp"
params [["_logic", objNull, [objNull]]];
if (!isNull _logic) then {
private _setting = _logic getVariable ["class",0];
private _objects = synchronizedObjects _logic;
{
if (local _x) then {
_x setVariable[QGVAR(isMedicalFacility), true, true];
};
} forEach _objects;
};
true;