Skip to content

A Lock-on standalone plugin in C++ for Unreal Engine 5.3

License

Notifications You must be signed in to change notification settings

HerManNav/LockOnPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LockOnPlugin

Usage

  • Download the LockOn folder and paste it into [your-project's-path]/Plugins folder
  • To test it:
    • Open your project and set the Default Pawn Class to LockOn/Content/Blueprints/BP_ThirdPersonCharacter_LockOn
    • Use the LockOn/Content/Blueprints/BP_Enemy to test the funcionality
  • To include it in your own BPs, all you need to do is add the logic in BP_ThirdPersonCharacter_LockOn and BP_Enemy to your own BPs

The default controls are:

  • F: Enable/Disable LockOn
  • Tab: Swap between targets

The method ULockOnComponent::FaceCurrentControllerDirection() can be used separate from the LockOn logic to instantly face a LockOn components's owner to whichever direction its Controller is currently facing. Used together with GetCharacterMovement()->bOrientRotationToMovement = [false/true] (for temporary stop automatic character's rotation), can come in handy for Dodge or other directional animations.

Demo

LockOnPluginCreation.-.Unreal.Editor.2024-05-15.17-40-47.mp4

About

A Lock-on standalone plugin in C++ for Unreal Engine 5.3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages