Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_TeleportCameraToPlayerContextAction.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleUIInfo
(
"m_Info"
)]
2
class
SCR_TeleportCameraToPlayerContextAction
:
SCR_BaseContextAction
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
SCR_PlayerController
.
GetLocalControlledEntity
() != null;
12
}
13
14
override
void
Perform(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
,
int
param = -1)
15
{
16
IEntity
playerEntity =
SCR_PlayerController
.
GetLocalControlledEntity
();
17
if
(!playerEntity)
18
return
;
19
20
vector
teleportPosition = playerEntity.
GetOrigin
();
21
22
SCR_CameraEditorComponent
cameraManager =
SCR_CameraEditorComponent
.Cast(
SCR_CameraEditorComponent
.GetInstance(
SCR_CameraEditorComponent
));
23
if
(cameraManager)
24
{
25
SCR_ManualCamera
camera = cameraManager.
GetCamera
();
26
if
(camera)
27
{
28
SCR_TeleportToCursorManualCameraComponent
teleportComponent =
SCR_TeleportToCursorManualCameraComponent
.Cast(camera.
FindCameraComponent
(
SCR_TeleportToCursorManualCameraComponent
));
29
if
(teleportComponent)
30
{
31
teleportComponent.TeleportCamera(teleportPosition,
true
,
true
,
true
);
32
}
33
}
34
}
35
}
36
};
flags
SCR_EAIThreatSectorFlags flags
Definition
AIControlComponentSerializer.c:16
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseContainerCustomTitleUIInfo
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")
Definition
SCR_ArsenalManagerComponent.c:1752
IEntity
Definition
IEntity.c:13
IEntity::GetOrigin
proto external vector GetOrigin()
SCR_BaseContextAction
Definition
SCR_BaseContextAction.c:8
SCR_CameraEditorComponent
Definition
SCR_CameraEditorComponent.c:14
SCR_CameraEditorComponent::GetCamera
SCR_ManualCamera GetCamera()
Definition
SCR_CameraEditorComponent.c:46
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_ManualCamera
Definition
SCR_ManualCamera.c:17
SCR_ManualCamera::FindCameraComponent
SCR_BaseManualCameraComponent FindCameraComponent(typename type)
Definition
SCR_ManualCamera.c:200
SCR_PlayerController
Definition
SCR_PlayerController.c:31
SCR_PlayerController::GetLocalControlledEntity
static IEntity GetLocalControlledEntity()
Definition
SCR_PlayerController.c:495
SCR_TeleportCameraToPlayerContextAction
Definition
SCR_TeleportCameraToPlayerContextAction.c:3
SCR_TeleportToCursorManualCameraComponent
Teleport the camera to the cursor's world position.
Definition
SCR_TeleportToCursorManualCameraComponent.c:6
vector
Definition
vector.c:13
scripts
Game
Editor
Containers
Actions
ContextActions
SCR_TeleportCameraToPlayerContextAction.c
Generated by
1.17.0