mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Changed disableUserInput_f to setDisableUserInputStatus.
This commit is contained in:
parent
63c024bc79
commit
86663e8a8e
@ -216,7 +216,7 @@ PREP(isAwake);
|
||||
PREP(setProne);
|
||||
|
||||
PREP(raiseScriptedEvent_f);
|
||||
PREP(disableUserInput_f);
|
||||
PREP(setDisableUserInputStatus);
|
||||
|
||||
PREP(dropWeapon_f);
|
||||
PREP(inWater_f);
|
||||
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* fn_disableUserInput_f.sqf
|
||||
* fn_setDisableUserInputStatus.sqf
|
||||
* @Descr: Disables the user input. Works stacked.
|
||||
* @Author: Glowbal
|
||||
*
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user