Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TaskActivateContextAction.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleUIInfo
(
"m_Info"
)]
2
class
SCR_TaskActivateContextAction
:
SCR_SelectedEntitiesContextAction
3
{
4
override
bool
CanBeShown(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition,
int
flags)
5
{
6
SCR_EditableTaskComponent
editableTask =
SCR_EditableTaskComponent
.Cast(selectedEntity);
7
return
editableTask && !editableTask.IsTaskActivated();
8
}
9
10
override
bool
CanBePerformed(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition,
int
flags)
11
{
12
return
true
;
13
}
14
15
override
void
Perform(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition)
16
{
17
SCR_EditableTaskComponent
editableTask =
SCR_EditableTaskComponent
.Cast(selectedEntity);
18
editableTask.ActivateTask();
19
}
20
};
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
SCR_SelectedEntitiesContextAction
Definition:
SCR_SelectedEntitiesContextAction.c:10
SCR_EditableTaskComponent
void SCR_EditableTaskComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition:
SCR_EditableTaskComponent.c:223
SCR_BaseContainerCustomTitleUIInfo
void SCR_BaseContainerCustomTitleUIInfo(string propertyName, string format="%1")
Definition:
Attributes.c:788
SCR_TaskActivateContextAction
Definition:
SCR_TaskActivateContextAction.c:2
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Editor
Containers
Actions
ContextActions
SCR_TaskActivateContextAction.c
Generated by
1.8.17