Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SetTaskCompletionAutomaticEditorAttribute.c
Go to the documentation of this file.
1//
4{
5 override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
6 {
8 if (task && task.GetTaskCompletionType() != EEditorTaskCompletionType.ALWAYS_MANUAL)
9 return SCR_BaseEditorAttributeVar.CreateBool(task.GetTaskCompletionType() == EEditorTaskCompletionType.AUTOMATIC);
10 else
11 return null;
12 }
13
14 override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
15 {
16 if (!var)
17 return;
18
20
21 if (var.GetBool())
22 task.SetTaskCompletionType(EEditorTaskCompletionType.AUTOMATIC);
23 else
24 task.SetTaskCompletionType(EEditorTaskCompletionType.MANUAL);
25 }
26};
EEditorTaskCompletionType
Way of determening if a task is completed automaticly, manually or always manually (In the latter cas...
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_EditableTaskComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
static SCR_BaseEditorAttributeVar CreateBool(bool value)