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

◆ RemoveActiveInputRestriction() [2/2]

override void MissionBase::RemoveActiveInputRestriction ( int restrictor)
inlineprotected

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

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

866 {
867 //unique behaviour outside regular excludes
868 if (restrictor > -1)
869 {
870 switch (restrictor)
871 {
872 case EInputRestrictors.INVENTORY:
873 {
874 GetUApi().GetInputByID(UAWalkRunForced).ForceEnable(false); // force walk off!
875 break;
876 }
877 case EInputRestrictors.MAP:
878 {
879 GetUApi().GetInputByID(UAWalkRunForced).ForceEnable(false); // force walk off!
880 break;
881 }
882 }
883
884 if (m_ActiveInputRestrictions && m_ActiveInputRestrictions.Find(restrictor) != -1)
885 {
886 m_ActiveInputRestrictions.RemoveItem(restrictor);
887 }
888 }
889 }
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.