fnc_isDoctor.sqf 354 B

123456789101112131415161718
  1. /*
  2. * Author: M3ales
  3. *
  4. * Arguments:
  5. * Player or unit to check
  6. * Return Value:
  7. * True if they are a doctor (medical level 2+), false otherwise
  8. *
  9. * Example:
  10. * [player] call rd501_fnc_isDoctor
  11. *
  12. * Public: No
  13. */
  14. params["_unit"];
  15. private _class = _unit getVariable ["ace_medical_medicClass", parseNumber (_unit getUnitTrait "medic")];
  16. _class >= 2