ACE3/addons/medical_treatment/functions/fnc_canStitch.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

24 lines
534 B
Plaintext

#include "script_component.hpp"
/*
* Author: Katalam, mharis001, Brett Mayson
* Checks if the patient can be stitched.
*
* Arguments:
* 0: Medic <OBJECT>
* 1: Patient <OBJECT>
*
* ReturnValue:
* Can Stitch <BOOL>
*
* Example:
* [player, cursorTarget] call ace_medical_treatment_fnc_canStitch
*
* Public: No
*/
params ["_medic", "_patient"];
if ((GVAR(consumeSurgicalKit) == 2) && {!([_medic, _patient, ["ACE_suture"]] call FUNC(hasItem))}) exitWith {false};
(_patient call FUNC(getStitchableWounds) isNotEqualTo [])