Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkSlotDefend.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/ScenarioFramework/Slot", description: "")]
5
6class SCR_ScenarioFrameworkSlotDefend : SCR_ScenarioFrameworkSlotTaskAI
7{
8 //------------------------------------------------------------------------------------------------
12 {
14 if (!m_Entity && !SCR_StringHelper.IsEmptyOrWhiteSpace(m_sObjectToSpawn))
15 {
17 return;
18 }
19
21 return;
22
23 m_bInitiated = false;
25 if (m_Entity)
26 m_vPosition = m_Entity.GetOrigin();
27
28 m_aSpawnedEntities.RemoveItem(null);
29 foreach (IEntity entity : m_aSpawnedEntities)
30 {
31 m_vPosition = entity.GetOrigin();
32 SCR_EntityHelper.DeleteEntityAndChildren(entity);
33 }
34
35 m_aSpawnedEntities.Clear();
36 }
37
38 //------------------------------------------------------------------------------------------------
39 // constructor
44 {
45#ifdef WORKBENCH
46 m_iDebugShapeColor = ARGB(100, 0x00, 0x10, 0xFF);
47#endif
48 }
49}
LayerPresets layer
vector m_vPosition
enum EAITargetInfoCategory m_Entity
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
ref array< IEntity > m_aSpawnedEntities
ScriptInvokerScenarioFrameworkLayer GetOnAllChildrenSpawned()
bool m_bExcludeFromDynamicDespawn
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
void DynamicDespawn(SCR_ScenarioFrameworkLayerBase layer)
bool m_bDynamicallyDespawned
void SCR_ScenarioFrameworkSlotDefend(IEntityComponentSource src, IEntity ent, IEntity parent)
enum EVehicleType IEntity
static bool IsEmptyOrWhiteSpace(string input)
proto int ARGB(int a, int r, int g, int b)