2015-03-07 12:47:28 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Register synchronized objects from passed object as a medical facility
|
2015-03-07 12:25:28 +00:00
|
|
|
*
|
2015-03-07 12:47:28 +00:00
|
|
|
* Arguments:
|
|
|
|
* 0: The module logic <LOGIC>
|
|
|
|
* 1: units <ARRAY>
|
|
|
|
* 2: activated <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None <NIL>
|
|
|
|
*
|
|
|
|
* Public: No
|
2015-03-07 12:25:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
private ["_logic","_setting","_objects"];
|
|
|
|
_logic = [_this,0,objNull,[objNull]] call BIS_fnc_param;
|
|
|
|
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;
|