Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TaskStateContextAction.c
Go to the documentation of this file.
3{
4 [Attribute(defvalue: SCR_ETaskState.CREATED.ToString(), uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(SCR_ETaskState))]
6
7 //------------------------------------------------------------------------------------------------
8 override bool CanBeShown(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition, int flags)
9 {
10 return selectedEntity && selectedEntity.GetEntityType() == EEditableEntityType.TASK;
11 }
12
13 //------------------------------------------------------------------------------------------------
14 override void Perform(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition)
15 {
16 SCR_TaskSystem taskSystem = SCR_TaskSystem.GetInstance();
17 if (!taskSystem)
18 return;
19
20 SCR_Task task = SCR_Task.Cast(selectedEntity.GetOwner());
21 if (!task)
22 return;
23
24 taskSystem.SetTaskState(task, m_eTaskState);
25 }
26};
SCR_EAIThreatSectorFlags flags
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")
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 bool CanBeShown(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition, int flags)
override void Perform(SCR_EditableEntityComponent selectedEntity, vector cursorWorldPosition)
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
SCR_FieldOfViewSettings Attribute