DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ RemoveActiveInputRestriction()

override void MissionBase::RemoveActiveInputRestriction ( int restrictor)
inlineprotected

Removes one restriction (specific behaviour oudside regular excludes, defined below)

См. определение в файле missionGameplay.c строка 924

925 {
926 //unique behaviour outside regular excludes
927 if (restrictor > -1)
928 {
929 switch (restrictor)
930 {
931 case EInputRestrictors.INVENTORY:
932 {
933 GetUApi().GetInputByID(UAWalkRunForced).ForceEnable(false); // force walk off!
934 break;
935 }
936 case EInputRestrictors.MAP:
937 {
938 GetUApi().GetInputByID(UAWalkRunForced).ForceEnable(false); // force walk off!
939 break;
940 }
941 }
942
943 if (m_ActiveInputRestrictions && m_ActiveInputRestrictions.Find(restrictor) != -1)
944 {
945 m_ActiveInputRestrictions.RemoveItem(restrictor);
946 }
947 }
948 }
proto native UAInputAPI GetUApi()
ref array< int > m_ActiveInputRestrictions
Определения missionGameplay.c:40
proto native void ForceEnable(bool bEnable)
proto native UAInput GetInputByID(int iID)
returns list of all bindable (i.e. visible) inputs from the active group ('core' by default)

Перекрестные ссылки UAInput::ForceEnable(), UAInputAPI::GetInputByID(), GetUApi() и m_ActiveInputRestrictions.

Используется в Continue(), EnableAllInputs(), HideInventory() и PlayerControlEnable().