Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIMovementSpeedEditorAttribute.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 // Empty brackets of character check
7
8 override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
9 {
11 if (!editableEntity || (editableEntity.GetEntityType() != EEditableEntityType.CHARACTER && editableEntity.GetEntityType() != EEditableEntityType.GROUP)) return null;
12 if (editableEntity.HasEntityState(EEditableEntityState.PLAYER)) return null;
13
14 //WIP
15 #ifndef WORKBENCH
16 return null;
17 #endif
18
19 //If character
20 if (editableEntity.GetEntityType() == EEditableEntityType.CHARACTER)
21 {
22
23 }
24 //If group
25 else
26 {
27 SCR_AIGroup aiGroup;// = SCR_AIGroup.Cast(GetOwner(editableEntity));
28 if (!aiGroup) return null;
29 }
30
31 //Should get character movement speed
33 }
34 override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
35 {
36 //TODO: Implement logics
37 if (!var) return;
38
39 bool setRunning = (int)m_aValues[var.GetInt()].GetFloatValue();
40
42
43 if (editableEntity.GetEntityType() == EEditableEntityType.CHARACTER)
44 {
45 Print("Set Character running: " + setRunning);
46 }
47 else if (editableEntity.GetEntityType() == EEditableEntityType.GROUP)
48 {
49 Print("Set Group running: " + setRunning);
50 }
51 }
52
53 //---- REFACTOR NOTE END ----
54};
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)
Definition int.c:13
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