Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TaskContextAction.c
Go to the documentation of this file.
3{
4 [Attribute(defvalue: "0", uiwidget: UIWidgets.ComboBox, enums: { ParamEnum("Complete", "0", ""), ParamEnum("Fail", "1", "") }, desc: "State to which the task will be set.")]
5 protected int m_iTaskState;
6
7 override bool CanBeShown(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition, int flags)
8 {
9 return selectedEntity && selectedEntity.GetEntityType() == EEditableEntityType.TASK && SCR_TaskSystem.GetInstance();
10 }
11
12 override bool CanBePerformed(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition, int flags)
13 {
14 return true;
15 }
16
17 override void Perform(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition)
18 {
19 if (!SCR_TaskSystem.GetInstance())
20 return;
21
22 SCR_Task task = SCR_Task.Cast(selectedEntity.GetOwner());
23 if (!task)
24 return;
25
26 switch (m_iTaskState)
27 {
28 //--- Complete
29 case 0:
30 {
31 task.SetTaskState(SCR_ETaskState.COMPLETED);
32 break;
33 }
34 //--- Fail
35 case 1:
36 {
37 task.SetTaskState(SCR_ETaskState.FAILED);
38 break;
39 }
40 }
41 }
42};
SCR_EAIThreatSectorFlags flags
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
void SCR_Task(IEntitySource src, IEntity parent)
Definition SCR_Task.c:1938
SCR_ETaskState
Definition SCR_Task.c:3
EEditableEntityType GetEntityType(IEntity owner=null)
override void Perform(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition)
override bool CanBeShown(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition, int flags)
override bool CanBePerformed(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition, int flags)
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
SCR_FieldOfViewSettings Attribute