Changed disableUserInput_f to setDisableUserInputStatus.

This commit is contained in:
Thomas Kooi 2015-01-18 19:54:43 +01:00
parent 63c024bc79
commit 86663e8a8e
5 changed files with 7 additions and 7 deletions

View File

@ -216,7 +216,7 @@ PREP(isAwake);
PREP(setProne);
PREP(raiseScriptedEvent_f);
PREP(disableUserInput_f);
PREP(setDisableUserInputStatus);
PREP(dropWeapon_f);
PREP(inWater_f);

View File

@ -24,7 +24,7 @@ if (isPlayer _unit) then {
if !(isnil QGVAR(DISABLE_USER_INPUT_COLLECTION_F)) then {
// clear all disable user input
{
[_X, false] call FUNC(disableUserInput_f);
[_X, false] call FUNC(setDisableUserInputStatus);
}foreach GVAR(DISABLE_USER_INPUT_COLLECTION_F);
};
};

View File

@ -23,7 +23,7 @@ if (_setArrest) then {
};
};
if (IsPlayer _unit) then {
[["arrested", true],QUOTE(FUNC(disableUserInput_f)),_unit,false] call EFUNC(common,execRemoteFnc);
[["arrested", true],QUOTE(FUNC(setDisableUserInputStatus)),_unit,false] call EFUNC(common,execRemoteFnc);
};
_unit disableAI "Move";
_unit disableAI "ANIM";
@ -38,7 +38,7 @@ if (_setArrest) then {
_unit enableAI "ANIM";
};
if (IsPlayer _unit) then {
[["arrested", false],QUOTE(FUNC(disableUserInput_f)),_unit,false] call EFUNC(common,execRemoteFnc);
[["arrested", false],QUOTE(FUNC(setDisableUserInputStatus)),_unit,false] call EFUNC(common,execRemoteFnc);
};
};

View File

@ -1,5 +1,5 @@
/**
* fn_disableUserInput_f.sqf
* fn_setDisableUserInputStatus.sqf
* @Descr: Disables the user input. Works stacked.
* @Author: Glowbal
*

View File

@ -43,7 +43,7 @@ _originalPos = unitPos _unit;
if (isPlayer _unit) then {
[] call FUNC(closeAllDialogs_f);
[true] call EFUNC(GUI,effectBlackOut);
["unconscious", true] call FUNC(disableUserInput_f);
["unconscious", true] call FUNC(setDisableUserInputStatus);
[false] call FUNC(setVolume_f);
} else {
_unit setUnitPos "DOWN";
@ -118,7 +118,7 @@ _minWaitingTime = (round(random(10)+5));
if (isPlayer _unit) then {
[false] call EFUNC(GUI,effectBlackOut);
[true] call FUNC(setVolume_f);
["unconscious", false] call FUNC(disableUserInput_f);
["unconscious", false] call FUNC(setDisableUserInputStatus);
} else {
[_unit, false] call FUNC(disableAI_F);
_unit setUnitPos _originalPos; // This is not position but stance (DOWN, MIDDLE, UP)