Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_GameModeCombatOpsManager.c
Go to the documentation of this file.
1 [EntityEditorProps(category: "GameScripted/GameMode", description: "")]
3 {
4 }
5 
6 class SCR_GameModeCombatOpsManager : SCR_GameModeSFManager
7 {
8  override void LoadHeaderSettings()
9  {
10  SCR_MissionHeader header = SCR_MissionHeader.Cast(GetGame().GetMissionHeader());
11  if (!header)
12  return;
13 
14  SCR_MissionHeaderCombatOps headerCombatOps = SCR_MissionHeaderCombatOps.Cast(header);
15  if (!headerCombatOps)
16  return;
17 
18  if (headerCombatOps.m_iMaxNumberOfTasks != -1)
19  m_iMaxNumberOfTasks = headerCombatOps.m_iMaxNumberOfTasks;
20 
21  if (!headerCombatOps.m_aTaskTypesAvailable.IsEmpty())
22  {
23  m_aTaskTypesAvailable.Clear();
24  foreach (SCR_ScenarioFrameworkTaskType taskType : headerCombatOps.m_aTaskTypesAvailable)
25  {
26  m_aTaskTypesAvailable.Insert(taskType);
27  }
28  }
29  }
30 }
m_aTaskTypesAvailable
protected ref array< ref SCR_ScenarioFrameworkTaskType > m_aTaskTypesAvailable
Definition: SCR_GameModeSFManager.c:35
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
LoadHeaderSettings
SCR_GameModeCombatOpsManagerClass SCR_GameModeSFManagerClass LoadHeaderSettings()
Definition: SCR_GameModeCombatOpsManager.c:8
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_MissionHeaderCombatOps
Definition: SCR_MissionHeaderCombatOps.c:1
m_iMaxNumberOfTasks
protected int m_iMaxNumberOfTasks
Definition: SCR_GameModeSFManager.c:37
SCR_GameModeCombatOpsManagerClass
Definition: SCR_GameModeCombatOpsManager.c:2
SCR_GameModeSFManagerClass
Definition: SCR_GameModeSFManager.c:2
SCR_MissionHeader
Definition: SCR_MissionHeader.c:1
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180