Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIFormationEditorAttribute.c
Go to the documentation of this file.
1 // Script File
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 };
SCR_BaseEditorAttributeCustomTitle
Definition: SCR_BaseEditorAttribute.c:868
SCR_BaseEditorAttributeVar
Definition: SCR_BaseEditorAttributeVar.c:1
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
SCR_BaseFloatValueHolderEditorAttribute
Attribute base for Name, icon and float value for other attributes to inherent from.
Definition: SCR_BaseFloatValueHolderEditorAttribute.c:3
SCR_AIFormationEditorAttribute
Definition: SCR_AIFormationEditorAttribute.c:3
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