Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SwitchToPlayerContextAction.c
Go to the documentation of this file.
3 {
4  override bool CanBeShown(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
5  {
6  return hoveredEntity && hoveredEntity.GetOwner() == SCR_PlayerController.GetLocalMainEntity() && !hoveredEntity.IsDestroyed();
7  }
8  override bool CanBePerformed(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
9  {
10  return CanBeShown(hoveredEntity, selectedEntities, cursorWorldPosition, flags);
11  }
12  override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,int flags, int param = -1)
13  {
14  SCR_EditorManagerEntity.CloseInstance();
15  }
16  override bool IsServer()
17  {
18  return false;
19  }
20 };
SCR_BaseEditorAction
Definition: SCR_BaseEditorAction.c:24
SCR_PlayerController
Definition: SCR_PlayerController.c:31
SCR_SwitchToPlayerContextAction
Definition: SCR_SwitchToPlayerContextAction.c:2
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
SCR_BaseContainerCustomTitleUIInfo
void SCR_BaseContainerCustomTitleUIInfo(string propertyName, string format="%1")
Definition: Attributes.c:788
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
SCR_EditorManagerEntity
Definition: SCR_EditorManagerEntity.c:26