Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_FocusHereContextAction.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 true;
7 }
8
9 override bool CanBePerformed(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
10 {
11 return false;
12 }
13
14 override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,int flags, int param = -1)
15 {
17 if (!editorCamera)
18 {
19 Print("SCR_FocusHereContextAction - failed to find editor cam base", LogLevel.WARNING);
20 return;
21 }
22
23 SCR_ManualCamera baseCamera = editorCamera.GetCamera();
24 if (!baseCamera)
25 {
26 Print("SCR_FocusHereContextAction - failed to find base editor cam", LogLevel.WARNING);
27 return;
28 }
29
31 if (!focus)
32 {
33 Print("SCR_FocusHereContextAction - failed to find editor cam focus", LogLevel.WARNING);
34 return;
35 }
36
37 focus.SetFocusToCursor();
38 }
39};
SCR_EAIThreatSectorFlags flags
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")
Focus camera on cursor position.
void SetFocusToCursor()
Set focus to cursor position.
SCR_BaseManualCameraComponent FindCameraComponent(typename type)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14