Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VONMenuActiveActionCondition.c
Go to the documentation of this file.
4 {
5  protected SCR_RadialMenu m_RadialMenu;
6 
7  //------------------------------------------------------------------------------------------------
8  override bool IsAvailable(SCR_AvailableActionsConditionData data)
9  {
10  if (!data)
11  return false;
12 
13  if (!m_RadialMenu)
14  {
15  SCR_VONController vonController = SCR_VONController.Cast(GetGame().GetPlayerController().FindComponent(SCR_VONController));
16  if (vonController && vonController.GetVONMenu())
17  m_RadialMenu = vonController.GetVONMenu().GetRadialMenu();
18 
19  if (!m_RadialMenu)
20  return GetReturnResult(false);
21  }
22 
23  return GetReturnResult(m_RadialMenu.IsOpened());
24  }
25 };
SCR_AvailableActionsConditionData
Definition: SCR_AvailableActionsConditionData.c:5
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition: SCR_HitZoneGroupNameHolder.c:27
GetPlayerController
proto external PlayerController GetPlayerController()
Definition: SCR_PlayerDeployMenuHandlerComponent.c:307
SCR_AvailableActionCondition
A single available action condition representation.
Definition: SCR_AvailableActionsCondition.c:3
m_RadialMenu
protected SCR_RadialMenu m_RadialMenu
Definition: SCR_PlayerControllerCommandingComponent.c:17
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
SCR_VONMenuActiveActionCondition
Returns true if VON Menu is active.
Definition: SCR_VONMenuActiveActionCondition.c:3
SCR_RadialMenu
Definition: SCR_RadialMenu.c:8
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468