|
Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the documentation of this file.
6 class SCR_ScenarioFrameworkSlotClearArea : SCR_ScenarioFrameworkSlotTask
9 override void Init(
SCR_ScenarioFrameworkArea area =
null, SCR_ScenarioFrameworkEActivationType activation = SCR_ScenarioFrameworkEActivationType.SAME_AS_PARENT)
20 if (!activationCondition.Init(
GetOwner()))
32 IEntity entity =
GetOwner().GetParent();
40 if (!layerBase.GetEnableRepeatedSpawn())
42 Print(
string.Format(
"ScenarioFramework: Object %1 already exists and won't be spawned for %2, exiting...",
m_Entity,
GetOwner().
GetName()), LogLevel.ERROR);
51 if (!m_bUseExistingWorldAsset)
54 QueryObjectsInRange();
60 BaseGameTriggerEntity trigger = BaseGameTriggerEntity.Cast(
m_Entity);
62 trigger.EnablePeriodicQueries(
false);
73 SCR_DamageManagerComponent objectDmgManager = SCR_DamageManagerComponent.GetDamageManager(
m_Entity);
79 EventHandlerManagerComponent ehManager = EventHandlerManagerComponent.Cast(
m_Entity.FindComponent(EventHandlerManagerComponent));
81 ehManager.RegisterScriptHandler(
"OnCompartmentEntered",
this,
OnCompartmentEntered,
false,
true);
104 m_Area.CheckAllChildrenSpawned(
this);
128 BaseGameTriggerEntity trigger = BaseGameTriggerEntity.Cast(
m_Entity);
130 trigger.EnablePeriodicQueries(
true);
protected ref array< ref SCR_ScenarioFrameworkPlugin > m_aPlugins
protected SCR_ScenarioFrameworkEActivationType m_eActivationType
protected bool m_bInitiated
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
ScriptInvokerScenarioFrameworkLayer GetOnAllChildrenSpawned()
protected bool m_bEnableRepeatedSpawn
protected SCR_ScenarioFrameworkArea m_Area
protected ref array< ref SCR_ScenarioFrameworkActionBase > m_aActivationActions
enum EAITargetInfoCategory m_Entity
override void AfterAllChildrenSpawned(SCR_ScenarioFrameworkLayerBase layer)
event protected void OnCompartmentEntered(IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
protected FactionKey m_sFactionKey
void InvokeAllChildrenSpawned()
SCR_ScenarioFrameworkSlotClearAreaClass SCR_ScenarioFrameworkSlotTaskClass Init(SCR_ScenarioFrameworkArea area=null, SCR_ScenarioFrameworkEActivationType activation=SCR_ScenarioFrameworkEActivationType.SAME_AS_PARENT)
protected bool m_bDynamicallyDespawned
IEntity GetOwner()
Owner entity of the fuel tank.
protected SCR_ScenarioFrameworkLayerBase m_ParentLayer
protected bool m_bIsTerminated
SCR_ScenarioFrameworkArea GetParentArea()
Get parent area the object is nested into.
protected void AfterParentAreaChildrenSpawned(SCR_ScenarioFrameworkLayerBase layer)
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
IEntity SpawnAsset(string name, ResourceName type, IEntity spawnpoint=null)
override void StoreTaskSubjectToParentTaskLayer()
protected void SetFactionKey(FactionKey factionKey)
protected ref array< ref SCR_ScenarioFrameworkActivationConditionBase > m_aActivationConditions
void OnObjectDamage(EDamageState state)