Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TutorialSeizingComponent.c
Go to the documentation of this file.
2{
3}
4
5class SCR_TutorialSeizingComponent : SCR_SeizingComponent
6{
7 //------------------------------------------------------------------------------------------------
9 {
10 UpdateFlagsInHierarchy(SCR_Faction.Cast(m_FactionControl.GetAffiliatedFaction()));
11 }
12
13 //------------------------------------------------------------------------------------------------
14 override bool IsDisabledAI(IEntity ent)
15 {
16 return false;
17 }
18
19 //------------------------------------------------------------------------------------------------
21 {
22 SCR_TutorialGamemodeComponent comp = SCR_TutorialGamemodeComponent.GetInstance();
23
24 if (comp && comp.GetCurrentStage().ClassName() != "SCR_Tutorial_Seizing_CaptureBase")
25 return null;
26
27 int playerId = GetGame().GetPlayerManager().GetPlayerIdFromControlledEntity(ent);
28
29 if (playerId == 0)
30 return null;
31
32 return super.EvaluateEntityFaction(ent);
33 }
34}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_FactionAffiliationComponent m_FactionControl
SCR_TutorialSeizingComponentClass SCR_SeizingComponentClass UpdateFlagsInHierarchyPublic()
bool IsDisabledAI(IEntity ent)
void UpdateFlagsInHierarchy(notnull SCR_Faction faction)
SCR_Faction EvaluateEntityFaction(IEntity ent)