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_AIFormationEditorAttribute.c
Go to the documentation of this file.
1
// Script File
2
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
3
class
SCR_AIFormationEditorAttribute
:
SCR_BaseFloatValueHolderEditorAttribute
4
{
5
override
SCR_BaseEditorAttributeVar
ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
6
{
7
return
null;
8
9
//WIP
10
#ifndef WORKBENCH
11
return
null;
12
#endif
13
14
/*
15
SCR_EditableEntityComponent editableEntity = SCR_EditableEntityComponent.Cast(item);
16
if (!editableEntity || (editableEntity.GetEntityType() != EEditableEntityType.GROUP)) return null;
17
if (editableEntity.HasEntityState(EEditableEntityState.PLAYER)) return null;
18
SCR_AIGroup aiGroup = SCR_AIGroup.Cast(editableEntity.GetOwner());
19
if (!aiGroup) return null;
20
AIFormationComponent AIFormation = AIFormationComponent.Cast(editableEntity.GetOwner().FindComponent(AIFormationComponent));
21
if (!AIFormation) return null;
22
AIFormationDefinition formation = AIFormation.GetFormation();
23
if (!formation) return null;
24
*/
25
26
27
//Print(formation.GetName());
28
29
30
31
return
SCR_BaseEditorAttributeVar
.
CreateInt
(0);
32
}
33
34
override
void
WriteVariable(Managed item,
SCR_BaseEditorAttributeVar
var, SCR_AttributesManagerEditorComponent manager,
int
playerID)
35
{
36
if
(!var)
return
;
37
SCR_EditableEntityComponent
editableEntity =
SCR_EditableEntityComponent
.Cast(item);
38
39
}
40
};
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_AIFormationEditorAttribute
Definition
SCR_AIFormationEditorAttribute.c:4
SCR_BaseEditorAttributeCustomTitle
Definition
SCR_BaseEditorAttribute.c:876
SCR_BaseEditorAttributeVar
Definition
SCR_BaseEditorAttributeVar.c:2
SCR_BaseEditorAttributeVar::CreateInt
static SCR_BaseEditorAttributeVar CreateInt(int value)
Definition
SCR_BaseEditorAttributeVar.c:107
SCR_BaseFloatValueHolderEditorAttribute
Attribute base for Name, icon and float value for other attributes to inherent from.
Definition
SCR_BaseFloatValueHolderEditorAttribute.c:4
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
scripts
Game
Editor
Containers
Attributes
SCR_AIFormationEditorAttribute.c
Generated by
1.17.0