Skip to content

1. Initial Setup

J1blCblu edited this page Oct 5, 2023 · 25 revisions

This page is up to date to the latest version.

Previous versions
Plugin Version Supported Unreal Versions
1.6.x 5.1-5.3
1.5.x 5.1-5.2
1.4.x 5.0-5.2
1.2.x 4.26-5.0

Initial Character Setup

  1. Add LockOnTargetComponent to your character.

image

  1. Set TargetHandlerImplementation to WeightedTargetHandler.

image

  1. Input Setup.

Input Overview.

  • Target capturing and releasing:

image

  • Target switching with an axis input:

image

Camera Setup

  1. Make sure to enable UsePawnControlRotation and EnableCameraLag in SpringArmComponent.

image image

  1. Add ControllerRotationExtension to DefaultExtensions.

image

  1. (Optional) If you want to smoothly apply camera zoom, you can add CameraModifierExtension.

image

Target Widget

  1. Add WidgetExtension to DefaultExtensions.

image

Pawn Rotation

  1. Add PawnRotationExtension to DefaultExtensions.

image

  1. Add OnTargetLocked/Unlocked events from LockOnTargetComponent and disable bOrientRotationToMovement in CharacterMovementComponent if used.

image

image

Initial Target Setup

  1. Add TargetComponent to the desired AActor.

image

  1. Select the mesh in AssociatedMeshName, which is used for Socket lookup, Widget attachment, etc. If None then the root component will be used.

image

  1. Select the desired sockets in Sockets.

At least one socket should be specified.

image

Target Preview

  1. (Optional) If you want to preview a potential Target, you can add TargetPreviewExtension to DefaultExtensions.

image

Packaging Game

Be sure to read this before packaging your project.

Clone this wiki locally