mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
23842aab39
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Glowbal
|
|
* Bandages open wounds on the given body part of the patient.
|
|
*
|
|
* Arguments:
|
|
* 0: Medic <OBJECT>
|
|
* 1: Patient <OBJECT>
|
|
* 2: Body Part <STRING>
|
|
* 3: Treatment <STRING>
|
|
* 4: Item User <OBJECT>
|
|
* 5: Used Item <STRING>
|
|
* 6: Create litter <BOOLEAN>
|
|
* 7: Bandage effectiveness coefficient <NUMBER> (default: 1)
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [player, cursorObject, "Head", "FieldDressing"] call ace_medical_treatment_fnc_bandage
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
_this set [7, _this param [7, 1]]; // set bandage effectiveness coefficient
|
|
[QGVAR(bandaged), _this] call CBA_fnc_localEvent; // Raise event with reference so mods can modify this
|
|
|
|
params ["_medic", "_patient", "_bodyPart", "_classname", "", "", "", "_bandageEffectiveness"];
|
|
|
|
[_patient, "activity", LSTRING(Activity_bandagedPatient), [[_medic, false, true] call EFUNC(common,getName)]] call FUNC(addToLog);
|
|
|
|
[QGVAR(bandageLocal), [_patient, _bodyPart, _classname, _bandageEffectiveness], _patient] call CBA_fnc_targetEvent;
|