Comrades in Arms Discussion Board

Full Version: script a building as an Ace Medical Facility
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, Does anyone know how to script a building as an Ace Medical Facility, also same for a medical vehicle?

(not using modules or the tick box on the object in editor)
Looking at ACE's source code, so this is guessing.

 For medical facilities, it seems to work by setting ace_medical_isMedicalFacility to true via

_facility setVariable [ace_medical_isMedicalFacility, true];

For vehicles, though, I am not entirely sure. This is the code that is called by the module:


Code:
if (!isNull _logic) then {
   private _list = _logic getVariable ["EnableList", ""];
   private _setting = _logic getVariable ["enabled", 0];

   [_list, QGVAR(medicClass), _setting, true] call EFUNC(common,assignObjectsInList);
   [synchronizedObjects _logic, QGVAR(medicClass), _setting, true, true] call EFUNC(common,assignObjectsInList);
};

_list and _settings are both the parameter fields in the module, and I am not entirely sure what they return... Would need some more digging, sadly, no time for that right now.
Thanks for this, that is enough for me to go on for now, dont worry about digging, I will dig into this and once confirmed working, I will post the result here