Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIStanceEditorAttribute.c
Go to the documentation of this file.
3{
4 //---- REFACTOR NOTE START: Not up to date with internal scripting style ----
5 // Probably not implemeneted
6
7 override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
8 {
10 if (!editableEntity || (editableEntity.GetEntityType() != EEditableEntityType.CHARACTER && editableEntity.GetEntityType() != EEditableEntityType.GROUP)) return null;
11 if (editableEntity.HasEntityState(EEditableEntityState.PLAYER)) return null;
12
13 //WIP
14 #ifndef WORKBENCH
15 return null;
16 #endif
17
18 //If character
19 if (editableEntity.GetEntityType() == EEditableEntityType.CHARACTER)
20 {
21
22 }
23 //If group
24 else
25 {
26 SCR_AIGroup aiGroup = SCR_AIGroup.Cast(editableEntity.GetOwner());
27 if (!aiGroup) return null;
28 }
29
30 //Should get character Stance
32 }
33 override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
34 {
36
37 //TODO: Implement logics
38 if (!var) return;
39
40 if (editableEntity.GetEntityType() == EEditableEntityType.CHARACTER)
41 {
42 Print("Set Character stance to: " + m_aValues[var.GetInt()].GetName());
43 }
44 else if (editableEntity.GetEntityType() == EEditableEntityType.GROUP)
45 {
46 Print("Set Group stance to: " + m_aValues[var.GetInt()].GetName());
47 }
48 }
49
50 //---- REFACTOR NOTE END ----
51};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
static SCR_BaseEditorAttributeVar CreateInt(int value)
Attribute base for Name, icon and float value for other attributes to inherent from.
ref array< ref SCR_EditorAttributeFloatStringValueHolder > m_aValues
bool HasEntityState(EEditableEntityState state)
EEditableEntityType GetEntityType(IEntity owner=null)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
EEditableEntityState