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

◆ RemoveActiveInputRestriction()

override void MissionBase::RemoveActiveInputRestriction ( int restrictor)
inlineprotected

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

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

935 {
936 //unique behaviour outside regular excludes
937 if (restrictor > -1)
938 {
939 switch (restrictor)
940 {
941 case EInputRestrictors.INVENTORY:
942 {
943 GetUApi().GetInputByID(UAWalkRunForced).ForceEnable(false); // force walk off!
944 break;
945 }
946 case EInputRestrictors.MAP:
947 {
948 GetUApi().GetInputByID(UAWalkRunForced).ForceEnable(false); // force walk off!
949 break;
950 }
951 }
952
953 if (m_ActiveInputRestrictions && m_ActiveInputRestrictions.Find(restrictor) != -1)
954 {
955 m_ActiveInputRestrictions.RemoveItem(restrictor);
956 }
957 }
958 }
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().