-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Medical - Add condition for surgicial kit (#6916)
* Added condition canStitch * Update XEH_PREP.hpp * Update addons/medical_treatment/functions/fnc_canStitch.sqf Co-Authored-By: Katalam <[email protected]> * Added example, removed arguments information and changed > to isEqualTo * Added example in canBandage too
- Loading branch information
1 parent
24a533b
commit 55a7d53
Showing
4 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "script_component.hpp" | ||
/* | ||
* Author: Katalam | ||
* Prevents stitch actions from showing if the body is either fully stitched or has no open wounds. | ||
* | ||
* Arguments: | ||
* 0: The medic <OBJECT> | ||
* 1: The patient <OBJECT> | ||
* | ||
* ReturnValue: | ||
* Can Stitch <BOOL> | ||
* | ||
* Example: | ||
* [player, cursorTarget] call ace_medical_treatment_fnc_canStitch | ||
* | ||
* Public: No | ||
*/ | ||
|
||
params ["", "_patient"]; | ||
|
||
!((_patient getVariable [QEGVAR(medical,bandagedWounds), []]) isEqualTo []) |