Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TaskCreatorComponent.c
Go to the documentation of this file.
1[ComponentEditorProps(category: "GameScripted/Tasks", description: "Component that takes care of auto creating tasks.")]
5
6class SCR_TaskCreatorComponent : SCR_BaseGameModeComponent
7{
8 [Attribute(desc: "Array of task creators")]
9 protected ref array<ref SCR_TaskCreator> m_aTaskCreators;
10
11 //------------------------------------------------------------------------------------------------
12 override void OnGameModeStart()
13 {
14 RplComponent rplComponent = RplComponent.Cast(GetOwner().FindComponent(RplComponent));
15 if (rplComponent && !rplComponent.IsMaster())
16 return;
17
18 foreach (SCR_TaskCreator taskCreator : m_aTaskCreators)
19 {
20 taskCreator.Init(this);
21 }
22 }
23
24 override void OnGameEnd()
25 {
26 RplComponent rplComponent = RplComponent.Cast(GetOwner().FindComponent(RplComponent));
27 if (rplComponent && !rplComponent.IsMaster())
28 return;
29
30 foreach (SCR_TaskCreator taskCreator : m_aTaskCreators)
31 {
32 taskCreator.Deinit();
33 }
34 }
35}
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
override void OnGameEnd()
Called on all machines when the world ends.
void SCR_BaseGameModeComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
override void OnGameModeStart()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
IEntity GetOwner()
Owner entity of the fuel tank.
SCR_FieldOfViewSettings Attribute