Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ScenarioFrameworkSlotDefend.c
Go to the documentation of this file.
1 [EntityEditorProps(category: "GameScripted/ScenarioFramework/Slot", description: "")]
3 {
4 }
5 
6 class SCR_ScenarioFrameworkSlotDefend : SCR_ScenarioFrameworkSlotTaskAI
7 {
8  //------------------------------------------------------------------------------------------------
10  {
12  if (!m_Entity && !SCR_StringHelper.IsEmptyOrWhiteSpace(m_sObjectToSpawn))
13  {
15  return;
16  }
17 
19  return;
20 
21  m_bInitiated = false;
23  if (m_Entity)
24  m_vPosition = m_Entity.GetOrigin();
25 
26  foreach (IEntity entity : m_aSpawnedEntities)
27  {
28  if (!entity)
29  continue;
30 
31  m_vPosition = entity.GetOrigin();
32  SCR_EntityHelper.DeleteEntityAndChildren(entity);
33  }
34 
35  m_aSpawnedEntities.Clear();
36  }
37 
38  //------------------------------------------------------------------------------------------------
39  // constructor
43  void SCR_ScenarioFrameworkSlotDefend(IEntityComponentSource src, IEntity ent, IEntity parent)
44  {
45 #ifdef WORKBENCH
46  m_iDebugShapeColor = ARGB(100, 0x00, 0x10, 0xFF);
47 #endif
48  }
49 }
SCR_EntityHelper
Definition: SCR_EntityHelper.c:1
m_bInitiated
protected bool m_bInitiated
Definition: SCR_ScenarioFrameworkLayerBase.c:72
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
SCR_ScenarioFrameworkSlotTaskAIClass
Definition: SCR_ScenarioFrameworkSlotTaskAI.c:2
SCR_ScenarioFrameworkSlotDefend
void SCR_ScenarioFrameworkSlotDefend(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_ScenarioFrameworkSlotDefend.c:43
GetOnAllChildrenSpawned
ScriptInvokerScenarioFrameworkLayer GetOnAllChildrenSpawned()
Definition: SCR_ScenarioFrameworkLayerBase.c:450
SCR_StringHelper
Definition: SCR_StringHelper.c:1
m_Entity
enum EAITargetInfoCategory m_Entity
m_bExcludeFromDynamicDespawn
protected bool m_bExcludeFromDynamicDespawn
Definition: SCR_ScenarioFrameworkLayerBase.c:52
m_bDynamicallyDespawned
protected bool m_bDynamicallyDespawned
Definition: SCR_ScenarioFrameworkLayerBase.c:74
DynamicDespawn
SCR_ScenarioFrameworkSlotDefendClass SCR_ScenarioFrameworkSlotTaskAIClass DynamicDespawn(SCR_ScenarioFrameworkLayerBase layer)
Definition: SCR_ScenarioFrameworkSlotDefend.c:9
m_iDebugShapeColor
protected int m_iDebugShapeColor
Definition: SCR_ScenarioFrameworkLayerBase.c:69
SCR_ScenarioFrameworkSlotDefendClass
Definition: SCR_ScenarioFrameworkSlotDefend.c:2
SCR_ScenarioFrameworkLayerBase
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_ScenarioFrameworkLayerBase.c:875
m_vPosition
vector m_vPosition
Definition: SCR_AITalkRequest.c:23
m_aSpawnedEntities
protected ref array< IEntity > m_aSpawnedEntities
Definition: SCR_ScenarioFrameworkLayerBase.c:62
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180