mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
45 lines
1.0 KiB
Plaintext
45 lines
1.0 KiB
Plaintext
/*
|
|
* Author: Glowbal
|
|
* reset all variables that have been defined
|
|
*
|
|
* Arguments:
|
|
* ?
|
|
*
|
|
* Return Value:
|
|
* ?
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit"];
|
|
|
|
_unit setVariable ["ACE_isDead", nil, true];
|
|
_unit setVariable ["ACE_isUnconscious", nil, true];
|
|
|
|
if (isPlayer _unit) then {
|
|
[true] call FUNC(setVolume);
|
|
// [false] call FUNC(disableKeyInput); //func does not exist
|
|
|
|
if (["ace_medical"] call FUNC(isModLoaded)) then {
|
|
// [false] call EFUNC(medical,effectBlackOut); //func does not exist
|
|
};
|
|
|
|
if !(isNil QGVAR(DISABLE_USER_INPUT_COLLECTION)) then {
|
|
// clear all disable user input
|
|
{
|
|
[_x, false] call FUNC(setDisableUserInputStatus);
|
|
false
|
|
} count GVAR(DISABLE_USER_INPUT_COLLECTION);
|
|
};
|
|
};
|
|
|
|
{
|
|
if !(_x select 4) then {
|
|
_unit setVariable [_x select 0, nil, _x select 3];
|
|
};
|
|
false
|
|
} count ([_unit] call FUNC(getAllDefinedSetVariables));
|
|
|
|
_unit setVariable ["ACE_forceWalkStatusNumber", 0, true];
|