🩻X-Ray Component Setup

Step 1: Adding the X-Ray Components

To add the X-Ray Component, go to: BP_Target -> Components -> Add -> BP_X-Ray_Widget_Component

OR drag and drop

From: Content -> Ultimate Damage System -> Blueprints -> BP_X-Ray_Widget_Component To: BP_Target -> Components

Step 2: Implementing the Event Hit

Add the X-Ray Component to the Damage Setup Function as previously shown in:

Step 4: Implementing the Event Hit

Step 3: Functions

The X-Ray Component includes 3 functions that can be called from the owner to change different aspects:

  1. Update Position

    • Updates the widget position on the screen and includes 3 variables:

      • Widget Pivot Preset | Choose one of the 5 standard pivots (Center, Top Left, Top Right, Bottom Left, Bottom Right)

      • Widget Size | Changes the size of the widget in pixels (Offset automatically adjusted based on Size)

      • Widget Offset | Changes the position relative to the pivot on X and Y axis

  2. Update Rotation

    • Automatically computes and updates the widget relative rotation to the camera and includes 3 variables:

      • Control Rotation | Get owner control rotation of the camera

      • Body World Rotation | Get owner's body world rotation

      • Top World Rotation | Get owner's top world rotation (the "Top" can be any rotating component of the blueprint, Ex. Tank Turret, Mounted Guns, etc.)

  3. Update Color

    • Updates the widget components colors and includes 5 variables:

      • HP Color Min | Updates the Color of the HP at 100%

      • HP Color Max | Updates the Color of the HP at 0%

      • Shield Color Min | Updates the Color of the Shield at 100%

      • Shield Color Max | Updates the Color of the Shield at 0%

      • Destroyed Color | Updates the Color of the Destroyed Component

Last updated