Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EntityFactionEditorAttribute.c
Go to the documentation of this file.
1// Script File
7{
8 protected override bool ValidEntity(GenericEntity entity)
9 {
11 if (!factionComponent)
12 return false;
13
14 Vehicle vehicle = Vehicle.Cast(entity);
15 if (vehicle)
16 return false;
17
19 if (arsenalComponent)
20 return false;
21
22 return true;
23 }
24
25 protected override Faction GetFaction(GenericEntity entity)
26 {
27 return SCR_FactionAffiliationComponent.Cast(entity.FindComponent(SCR_FactionAffiliationComponent)).GetAffiliatedFaction();
28 }
29
30 protected override void SetFaction(GenericEntity entity, Faction faction)
31 {
33 if (!factionComponent)
34 return;
35
36 factionComponent.SetAffiliatedFaction(faction);
37 }
38};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
proto external Managed FindComponent(typename typeName)
static SCR_ArsenalComponent FindArsenalComponent(notnull IEntity entity, bool getFromSlotted=true)
override void SetFaction(GenericEntity entity, Faction faction)
override Faction GetFaction(GenericEntity entity)
override bool ValidEntity(GenericEntity entity)
enum EPhysicsLayerPresets Vehicle
Definition gameLib.c:24