ACE3/addons/medical_treatment/functions/fnc_surgicalKitStart.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

25 lines
527 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Brett Mayson
* Handles the surgical kit treatment start by consuming a suture when applicable
*
* Arguments:
* 0: Medic <OBJECT>
* 1: Patient <OBJECT>
*
* Return Value:
* None
*
* Example:
* [player, cursorObject] call ace_medical_treatment_fnc_surgicalKitStart
*
* Public: No
*/
params ["_medic", "_patient"];
TRACE_2("surgicalKitStart",_medic,_patient);
if (GVAR(consumeSurgicalKit) == 2) then {
([_medic, _patient, ["ACE_suture"]] call FUNC(useItem));
};