mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e252ef67d6
Co-authored-by: Walthzer <19926813+Walthzer@users.noreply.github.com>
24 lines
534 B
Plaintext
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 [])
|