mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
664 B
Plaintext
24 lines
664 B
Plaintext
/**
|
|
* fn_setDead.sqf
|
|
* @Descr: Set a unit dead from within CMS.
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: [unit OBJECT]
|
|
* @Return: void
|
|
* @PublicAPI: true
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_unit"];
|
|
_unit = _this select 0;
|
|
|
|
if (!alive _unit) exitwith{};
|
|
if (!local _unit) exitwith {};
|
|
|
|
[_unit, QGVAR(amountOfPain),0,true] call EFUNC(common,setDefinedVariable);
|
|
[_unit, QGVAR(heartRate),0,true] call EFUNC(common,setDefinedVariable);
|
|
[_unit, QGVAR(bloodPressure), [0,0],true] call EFUNC(common,setDefinedVariable);
|
|
[_unit, QGVAR(airway), 3, true] call EFUNC(common,setDefinedVariable);
|
|
|
|
[_unit] call EFUNC(common,setDead); // calling framework function |