Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ScenarioFrameworkDebug.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 class SCR_ScenarioFrameworkDebugArea : ScriptAndConfig
4 {
5  [Attribute(desc: "Name of the Area which will be selected to spawn", category: "Debug")];
6  protected string m_sForcedArea;
7 
8  [Attribute(desc: "Name of the Layer Task that will get spawned under attached Area. If left empty, Layer Task will be randomly selected", category: "Debug")];
9  protected string m_sForcedLayerTask;
10 
11  //------------------------------------------------------------------------------------------------
12  SCR_ScenarioFrameworkArea GetForcedArea()
13  {
14  if (SCR_StringHelper.IsEmptyOrWhiteSpace(m_sForcedArea))
15  return null;
16 
17  IEntity entity = GetGame().GetWorld().FindEntityByName(m_sForcedArea);
18  if (!entity)
19  return null;
20 
21  return SCR_ScenarioFrameworkArea.Cast(entity.FindComponent(SCR_ScenarioFrameworkArea));
22  }
23 
24  //------------------------------------------------------------------------------------------------
25  SCR_ScenarioFrameworkLayerTask GetForcedLayerTask()
26  {
27  if (SCR_StringHelper.IsEmptyOrWhiteSpace(m_sForcedLayerTask))
28  return null;
29 
30  IEntity entity = GetGame().GetWorld().FindEntityByName(m_sForcedLayerTask);
31  if (!entity)
32  return null;
33 
34  return SCR_ScenarioFrameworkLayerTask.Cast(entity.FindComponent(SCR_ScenarioFrameworkLayerTask));
35  }
36 }
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_StringHelper
Definition: SCR_StringHelper.c:1
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_ContainerActionTitle
SCR_ContainerActionTitle BaseContainerCustomTitle SCR_ContainerActionTitle()] class SCR_ScenarioFrameworkActionBase
Definition: SCR_ScenarioFrameworkActions.c:43
SCR_ScenarioFrameworkArea
Definition: SCR_ScenarioFrameworkArea.c:24
SCR_ScenarioFrameworkDebugArea
Definition: SCR_ScenarioFrameworkDebug.c:3
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
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180