Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_EntityFactionEditorAttribute.c
Go to the documentation of this file.
1
// Script File
5
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
6
class
SCR_EntityFactionEditorAttribute
:
SCR_BaseFactionEditableAttribute
7
{
8
protected
override
bool
ValidEntity
(
GenericEntity
entity)
9
{
10
SCR_FactionAffiliationComponent
factionComponent =
SCR_FactionAffiliationComponent
.Cast(entity.
FindComponent
(
SCR_FactionAffiliationComponent
));
11
if
(!factionComponent)
12
return
false
;
13
14
Vehicle
vehicle =
Vehicle
.Cast(entity);
15
if
(vehicle)
16
return
false
;
17
18
SCR_ArsenalComponent
arsenalComponent =
SCR_ArsenalComponent
.
FindArsenalComponent
(entity);
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
{
32
SCR_FactionAffiliationComponent
factionComponent =
SCR_FactionAffiliationComponent
.Cast(entity.
FindComponent
(
SCR_FactionAffiliationComponent
));
33
if
(!factionComponent)
34
return
;
35
36
factionComponent.SetAffiliatedFaction(faction);
37
}
38
};
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
Faction
Definition
Faction.c:13
GenericEntity
Definition
GenericEntity.c:16
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_ArsenalComponent
Definition
SCR_ArsenalComponent.c:10
SCR_ArsenalComponent::FindArsenalComponent
static SCR_ArsenalComponent FindArsenalComponent(notnull IEntity entity, bool getFromSlotted=true)
Definition
SCR_ArsenalComponent.c:232
SCR_BaseEditorAttributeCustomTitle
Definition
SCR_BaseEditorAttribute.c:876
SCR_BaseFactionEditableAttribute
Definition
SCR_BaseFactionEditableAttribute.c:6
SCR_EntityFactionEditorAttribute
Definition
SCR_EntityFactionEditorAttribute.c:7
SCR_EntityFactionEditorAttribute::SetFaction
override void SetFaction(GenericEntity entity, Faction faction)
Definition
SCR_EntityFactionEditorAttribute.c:30
SCR_EntityFactionEditorAttribute::GetFaction
override Faction GetFaction(GenericEntity entity)
Definition
SCR_EntityFactionEditorAttribute.c:25
SCR_EntityFactionEditorAttribute::ValidEntity
override bool ValidEntity(GenericEntity entity)
Definition
SCR_EntityFactionEditorAttribute.c:8
SCR_FactionAffiliationComponent
Definition
SCR_FactionAffiliationComponent.c:11
Vehicle
enum EPhysicsLayerPresets Vehicle
Definition
gameLib.c:24
scripts
Game
Editor
Containers
Attributes
SCR_EntityFactionEditorAttribute.c
Generated by
1.17.0