mklabs / ue4-targetsystemplugin

Dark Souls inspired Camera Lock On / Targeting system plugin

Home Page:https://www.unrealengine.com/marketplace/target-system-component-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't lock on unless directly facing

JDylan1396 opened this issue · comments

When using the plug-in, I am unable to lock on to the enemy AI unless I am facing directly at the AI. Is this is the desired result? I'd like to be able to not be facing with my character and lock on to the AI, only having the camera face the AI and trigger the lock on.

I don't understand your issue. The default behaviour does that, it only checks if the actor you're trying to target is not hidden by an obstacle and is in the viewport. The rotation of your player character doesn't matter.

Example in a sample project:

like this

Is not that what you're looking for ? That should be what you get with the default settings.

commented

I found that if the object you are trying to target is a flat surface you will only be able to target it from one side. I fix this by creating objects with volume where you can't see the inside and all normals point outside.
If this is the case this has to do with ray trace and flat models without volume, not the plugin.