2018-07-30 09:22:14 +00:00
|
|
|
#include "script_component.hpp"
|
2016-12-06 19:42:10 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Update the peripheral resistance
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Unit <OBJECT>
|
2019-04-27 19:12:11 +00:00
|
|
|
* 1: Peripheral Resistance Adjustments <NUMBER>
|
|
|
|
* 2: Time since last update <NUMBER>
|
|
|
|
* 3: Sync value? <BOOL>
|
2016-12-06 19:42:10 +00:00
|
|
|
*
|
2018-05-08 08:17:47 +00:00
|
|
|
* Return Value:
|
|
|
|
* None
|
2016-12-06 19:42:10 +00:00
|
|
|
*
|
2019-04-27 19:12:11 +00:00
|
|
|
* Example:
|
|
|
|
* [player, 0, 1, false] call ace_medical_vitals_fnc_updatePeripheralResistance
|
|
|
|
*
|
2016-12-06 19:42:10 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2019-04-27 19:12:11 +00:00
|
|
|
params ["_unit", "_peripheralResistanceAdjustment", "_deltaT", "_syncValue"];
|
2016-12-06 19:42:10 +00:00
|
|
|
|
2019-04-27 19:12:11 +00:00
|
|
|
_unit setVariable [VAR_PERIPH_RES, 0 max (DEFAULT_PERIPH_RES + _peripheralResistanceAdjustment), _syncValue];
|