Comrades in Arms Discussion Board
script a building as an Ace Medical Facility - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8)
+--- Thread: script a building as an Ace Medical Facility (/showthread.php?tid=3550)



script a building as an Ace Medical Facility - treendy - 01-26-2017

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)


RE: script a building as an Ace Medical Facility - Alwarren - 01-26-2017

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.


RE: script a building as an Ace Medical Facility - treendy - 01-26-2017

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