ACE3/addons/medical/functions/fnc_moduleAssignMedicalFacility.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

34 lines
703 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"
private ["_setting", "_objects"];
params [["_logic", objNull, [objNull]]];
if (!isNull _logic) then {
_setting = _logic getVariable ["class",0];
_objects = synchronizedObjects _logic;
{
if (local _x) then {
_x setVariable[QGVAR(isMedicalFacility), true, true];
};
} forEach _objects;
};
true;