3 [
Attribute(
"1000",
desc:
"Max distance to command position in meters.")]
24 [
Attribute(
"26",
desc:
"Default Image size of Command Icon Widget.")]
27 [
Attribute(
"48",
desc:
"Default Image size of Command Glow Widget.")]
30 [
Attribute(
"64",
desc:
"Default Image size of Command Pulse Preview Widget.")]
108 int cameraIndex = world.GetCurrentCameraId();
110 world.GetCamera(cameraIndex, transform);
125 CameraManager cameraManager =
GetGame().GetCameraManager();
128 CameraBase camera = cameraManager.CurrentCamera();
129 if (camera && camera.GetProjType() !=
CameraType.NONE)
133 vector referencePos = transform[3];
144 if (distanceLimit != 0)
145 sizeScale =
Math.Clamp(distanceLimit -
m_fDistance, 0.2, distanceLimit) / distanceLimit;
176 PlayerController controller =
GetGame().GetPlayerController();
181 IEntity controlledEntity = controller.GetControlledEntity();
184 camera.GetTransform(mat);
195 array<IEntity> excludeArray = {};
196 excludeArray.Insert(controlledEntity);
199 if (playerCharacter && playerCharacter.IsInVehicle())
201 CompartmentAccessComponent compartmentComp = playerCharacter.GetCompartmentAccessComponent();
204 IEntity vehicleIn = compartmentComp.GetVehicleIn(playerCharacter);
206 excludeArray.Insert(vehicleIn);
266 if (deleteWidget && anim)
287 vector screenPosition =
GetGame().GetWorkspace().ProjWorldToScreen(worldPosition, world, cameraIndex);
288 posX = screenPosition[0];
289 posY = screenPosition[1];
303 string imageSet = command.GetIconImageset();
304 string icon = command.GetIconName();
306 if (imageSet ==
string.Empty)
ArmaReforgerScripted GetGame()
SCR_HUDManagerComponent m_HUDManager
SCR_ECommandVisualizationDuration
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_ECommandVisualizationDuration GetVisualizationDuration()
vector m_vCommandPosition
float m_fCommandIconWidgetSize
override void DisplayStartDraw(IEntity owner)
void HandleVisualizationDuration()
void HideWidget(bool deleteWidget=false)
static const int PULSE_WIDGET_MAX_SIZE
float m_fCommandVisualRange
WorkspaceWidget m_wWorkspace
string m_sCommandPulseWidgetName
bool IsInLineOfSight(vector point, vector transform[4])
ImageWidget m_wCommandPulseWidget
string m_sCommandPulsePreviewWidgetName
void SetCanUpdatePosition(bool canUpdate)
void DeleteWidget(WidgetAnimationOpacity anim=null)
void FadeOutPulseDelayed()
override void DisplayUpdate(IEntity owner, float timeSlice)
string m_sCommandIconWidgetName
static const float LINE_OF_SIGHT_THRESHOLD
override void DisplayStopDraw(IEntity owner)
Widget m_wCommandFrameWidget
string m_sCommandFrameWidgetName
void VisualizeCommand(vector targetPosition, SCR_BaseGroupCommand command)
void SetIsPreview(bool isPreview)
ImageWidget m_wCommandGlowWidget
float m_fCommandPulsePreviewWidgetSize
ref SCR_PhysicsHelper m_PhysicsHelper
ref TraceParam m_TraceParam
bool m_bCanUpdatePosition
float m_fCommandGlowWidgetSize
string m_sCommandGlowWidgetName
bool GetWorldToScreenPosition(BaseWorld world, vector worldPosition, out float posX, out float posY, int cameraIndex=-1)
SCR_ECommandVisualizationDuration m_eCommandVisualizationDuration
void FadeOutPulse(WidgetAnimationOpacity anim)
ImageWidget m_wCommandPulsePreviewWidget
ImageWidget m_wCommandIconWidget
static const float BASE_FOV
CameraManagerClass GenericEntityClass CurrentCamera()
Returns the current camera.
SCR_FieldOfViewSettings Attribute