ACE3/addons/medical_treatment/functions/fnc_surgicalKitStart.sqf
BrettMayson e252ef67d6
Medical Treatment - Suture (#9020)
Co-authored-by: Walthzer <19926813+Walthzer@users.noreply.github.com>
2023-03-06 14:17:01 -06:00

25 lines
524 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));
};