1669 {
1670 PlayerBase player;
1672 ActionBase action;
1673
1675 {
1677 {
1679
1681 if (!player)
1682 return;
1683
1684 amb = player.GetActionManager();
1685 if (!amb)
1686 return;
1687
1688 action = amb.GetRunningAction();
1689 if (action && amb.GetActionState(action) !=
UA_NONE)
1690 {
1691 amb.RequestInterruptAction();
1692 }
1693 return;
1694 }
1695
1697 {
1699 {
1701 }
1702
1705 }
1706 }
1707 else
1708 {
1710 {
1713
1715 if (!player)
1716 return;
1717
1718 amb = player.GetActionManager();
1719 if (!amb)
1720 return;
1721
1722 action = amb.GetRunningAction();
1723 if (action && amb.GetActionState(action) !=
UA_NONE)
1724 {
1725 amb.RequestInterruptAction();
1726 }
1727 }
1728 }
1729 }
void ActionManagerBase(PlayerBase player)
int GetID()
Get the ID registered in SEffectManager.
proto native UIManager GetUIManager()
override ScriptCallQueue GetCallQueue(int call_category)
proto native Mission GetMission()
UIScriptedMenu m_ConnectionMenu
proto void Remove(func fn)
remove specific call from queue
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.
proto native CGame GetGame()