mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
31 lines
608 B
Plaintext
31 lines
608 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
|
|
*
|
|
* 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;
|