ACE3/addons/fire/functions/fnc_medical_success.sqf
2022-01-30 11:54:30 -06:00

24 lines
494 B
Plaintext

#include "script_component.hpp"
/*
* Author: Dani (TCVM)
* Decreases burning intensity on successful medical action.
*
* Arguments:
* 0: Medic <OBJECT>
* 1: Patient <OBJECT>
*
* Return Value:
* None
*
* Example:
* [player, cursorObject] call ace_fire_fnc_medical_success
*
* Public: No
*/
params ["_medic", "_patient"];
private _intensity = _patient getVariable [QGVAR(intensity), 0];
_intensity = _intensity * (4/5);
_patient setVariable [QGVAR(intensity), _intensity, true];