1759 {
1760 PlayerBase player;
1763
1765 {
1766 DayZPlayer dayzPlayer =
g_Game.GetPlayer();
1767 if (
m_ConnectionMenu && (!dayzPlayer.IsAlive() || dayzPlayer.IsUnconscious()))
1768 {
1770
1771 player = PlayerBase.Cast(dayzPlayer);
1772 if (!player)
1773 return;
1774
1775 amb = player.GetActionManager();
1776 if (!amb)
1777 return;
1778
1779 action = amb.GetRunningAction();
1780 if (action && amb.GetActionState(action) !=
UA_NONE)
1781 {
1782 amb.RequestInterruptAction();
1783 }
1784 return;
1785 }
1786
1788 {
1789 UIManager uiManager =
g_Game.GetUIManager();
1790 UIScriptedMenu menu = uiManager.
GetMenu();
1792 {
1793 g_Game.GetMission().HideInventory();
1794 }
1795
1798 }
1799 }
1800 else
1801 {
1803 {
1806
1807 player = PlayerBase.Cast(
g_Game.GetPlayer());
1808 if (!player)
1809 return;
1810
1811 amb = player.GetActionManager();
1812 if (!amb)
1813 return;
1814
1815 action = amb.GetRunningAction();
1816 if (action && amb.GetActionState(action) !=
UA_NONE)
1817 {
1818 amb.RequestInterruptAction();
1819 }
1820 }
1821 }
1822 }
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.