ACE3/addons/medical_status/functions/fnc_setPainTotal.sqf
2017-04-27 19:02:23 +02:00

16 lines
295 B
Plaintext

/*
* Author: BaerMitUmlaut
* Sets the total pain level of a unit.
*
* Arguments:
* 0: The Unit <OBJECT>
* 1: Pain level (0..1) <NUMBER>
*
* Return Value:
* None
*/
#include "script_component.hpp"
params ["_unit", "_pain"];
_unit setVariable [QGVAR(pain), 0 max _pain min 1];