Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIGroupFactionEditorAttribute.c
Go to the documentation of this file.
1// Script File
7{
8 protected override bool ValidEntity(GenericEntity entity)
9 {
10 SCR_AIGroup aIGroup = SCR_AIGroup.Cast(entity);
11 if (!aIGroup || aIGroup.GetPlayerCount() > 0 || aIGroup.IsSlave())
12 return false;
13
14 return true;
15 }
16
17 protected override Faction GetFaction(GenericEntity entity)
18 {
19 return SCR_AIGroup.Cast(entity).GetFaction();
20 }
21
22 protected override void SetFaction(GenericEntity entity, Faction faction)
23 {
24 SCR_AIGroup aIGroup = SCR_AIGroup.Cast(entity);
25 if (!aIGroup || aIGroup.GetPlayerCount() > 0)
26 return;
27
28 aIGroup.SetFaction(faction);
29 }
30};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void SetFaction(GenericEntity entity, Faction faction)
override bool ValidEntity(GenericEntity entity)
override Faction GetFaction(GenericEntity entity)
int GetPlayerCount(bool checkMasterAndSlaves=false)
bool SetFaction(Faction faction)
bool IsSlave()
Faction GetFaction()