#include "..\script_component.hpp" /* * Author: Glowbal, mharis001 * Returns the current triage status of the unit. * * Arguments: * 0: Unit * * Return Value: * Triage Info * 0: Status ID * 1: Name * 2: Color * 3: Text Color * * Example: * [player] call ace_medical_treatment_fnc_getTriageStatus * * Public: No */ params ["_unit"]; private _status = _unit getVariable [QEGVAR(medical,triageLevel), -1]; switch (_status) do { case 1: {[1, localize LSTRING(Triage_Status_Minimal), [TRIAGE_COLOR_MINIMAL], [TRIAGE_TEXT_COLOR_MINIMAL]]}; case 2: {[2, localize LSTRING(Triage_Status_Delayed), [TRIAGE_COLOR_DELAYED], [TRIAGE_TEXT_COLOR_DELAYED]]}; case 3: {[3, localize LSTRING(Triage_Status_Immediate), [TRIAGE_COLOR_IMMEDIATE], [TRIAGE_TEXT_COLOR_IMMEDIATE]]}; case 4: {[4, localize LSTRING(Triage_Status_Deceased), [TRIAGE_COLOR_DECEASED], [TRIAGE_TEXT_COLOR_DECEASED]]}; default {[0, localize LSTRING(Triage_Status_None), [TRIAGE_COLOR_NONE], [TRIAGE_TEXT_COLOR_NONE]]}; };