Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIGroupFactionEditorAttribute.c
Go to the documentation of this file.
1
// Script File
5
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
6
class
SCR_AIGroupFactionEditorAttribute
:
SCR_BaseFactionEditableAttribute
7
{
8
protected
override
bool
ValidEntity(
GenericEntity
entity)
9
{
10
SCR_AIGroup
aIGroup =
SCR_AIGroup
.Cast(entity);
11
if
(!aIGroup || aIGroup.GetPlayerCount() > 0)
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
};
GenericEntity
SCR_GenericBoxEntityClass GenericEntity
SCR_AIGroupFactionEditorAttribute
Definition:
SCR_AIGroupFactionEditorAttribute.c:6
SCR_BaseEditorAttributeCustomTitle
Definition:
SCR_BaseEditorAttribute.c:868
SCR_BaseFactionEditableAttribute
Definition:
SCR_BaseFactionEditableAttribute.c:5
Faction
Definition:
Faction.c:12
SCR_AIGroup
Definition:
SCR_AIGroup.c:68
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Editor
Containers
Attributes
SCR_AIGroupFactionEditorAttribute.c
Generated by
1.8.17