mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
23 lines
428 B
Plaintext
23 lines
428 B
Plaintext
/**
|
|
* fnc_onUnconscious.sqf
|
|
* @Descr: N/A
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: []
|
|
* @Return:
|
|
* @PublicAPI: false
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_unit", "_state"];
|
|
_unit = _this select 0;
|
|
_state = _this select 1;
|
|
|
|
if (_state) then {
|
|
if (GVAR(setting_allowAirwayInjuries)) then {
|
|
if (random(1) >= 0.3) then {
|
|
_unit setvariable [QGVAR(airwayOccluded), true, true];
|
|
};
|
|
};
|
|
}; |