mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
614 B
Plaintext
25 lines
614 B
Plaintext
|
/**
|
||
|
* fn_assignMedicalFacility.sqf
|
||
|
* @Descr: Register synchronized objects from passed object as a medical facility for CMS.
|
||
|
* @Author: Glowbal
|
||
|
*
|
||
|
* @Arguments: [logic OBJECT]
|
||
|
* @Return: BOOL
|
||
|
* @PublicAPI: true
|
||
|
*/
|
||
|
|
||
|
#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
|