Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TeleportCameraToPlayerContextAction.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 {
12 }
13
14 override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,int flags, int param = -1)
15 {
17 if (!playerEntity)
18 return;
19
20 vector teleportPosition = playerEntity.GetOrigin();
21
23 if (cameraManager)
24 {
25 SCR_ManualCamera camera = cameraManager.GetCamera();
26 if (camera)
27 {
29 if (teleportComponent)
30 {
31 teleportComponent.TeleportCamera(teleportPosition, true, true, true);
32 }
33 }
34 }
35 }
36};
SCR_EAIThreatSectorFlags flags
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")
proto external vector GetOrigin()
SCR_BaseManualCameraComponent FindCameraComponent(typename type)
static IEntity GetLocalControlledEntity()
Teleport the camera to the cursor's world position.