1695 {
1696 PlayerBase player;
1698 ActionBase action;
1699
1701 {
1702 DayZPlayer dayzPlayer =
g_Game.GetPlayer();
1703 if (
m_ConnectionMenu && (!dayzPlayer.IsAlive() || dayzPlayer.IsUnconscious()))
1704 {
1706
1707 player = PlayerBase.Cast(dayzPlayer);
1708 if (!player)
1709 return;
1710
1711 amb = player.GetActionManager();
1712 if (!amb)
1713 return;
1714
1715 action = amb.GetRunningAction();
1716 if (action && amb.GetActionState(action) !=
UA_NONE)
1717 {
1718 amb.RequestInterruptAction();
1719 }
1720 return;
1721 }
1722
1724 {
1725 UIManager uiManager =
g_Game.GetUIManager();
1726 UIScriptedMenu menu = uiManager.
GetMenu();
1728 {
1729 g_Game.GetMission().HideInventory();
1730 }
1731
1734 }
1735 }
1736 else
1737 {
1739 {
1742
1743 player = PlayerBase.Cast(
g_Game.GetPlayer());
1744 if (!player)
1745 return;
1746
1747 amb = player.GetActionManager();
1748 if (!amb)
1749 return;
1750
1751 action = amb.GetRunningAction();
1752 if (action && amb.GetActionState(action) !=
UA_NONE)
1753 {
1754 amb.RequestInterruptAction();
1755 }
1756 }
1757 }
1758 }
void ActionManagerBase(PlayerBase player)
UIScriptedMenu m_ConnectionMenu
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
bool CloseAll()
Close all opened menus.