Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ActiveVoNActionCondition.c
Go to the documentation of this file.
4 {
5  protected SCR_VonDisplay m_VoNDisplay;
6 
7  override bool IsAvailable(SCR_AvailableActionsConditionData data)
8  {
9  if (!data)
10  return false;
11 
12  if (!m_VoNDisplay)
13  {
14  PlayerController playerController = GetGame().GetPlayerController();
15 
16  if (!playerController)
17  return GetReturnResult(false);
18 
19  SCR_VONController voNController = SCR_VONController.Cast(playerController.FindComponent(SCR_VONController));
20 
21  if (!voNController)
22  return GetReturnResult(false);
23 
24  m_VoNDisplay = voNController.GetDisplay();
25 
26  if (!m_VoNDisplay)
27  return GetReturnResult(false);
28  }
29 
30  return GetReturnResult(m_VoNDisplay.GetActiveTransmissionsCount() > 0 || m_VoNDisplay.IsCapturingTransmisionActive());
31  }
32 };
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
SCR_ActiveVoNActionCondition
Returns true if VoN UI is active.
Definition: SCR_ActiveVoNActionCondition.c:3
SCR_AvailableActionCondition
A single available action condition representation.
Definition: SCR_AvailableActionsCondition.c:3
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
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