ue4-targetsystemplugin icon indicating copy to clipboard operation
ue4-targetsystemplugin copied to clipboard

Can't lock on unless directly facing

Open JDylan1396 opened this issue 4 years ago • 2 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.

JDylan1396 avatar Jun 30 '20 20:06 JDylan1396

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.

mklabs avatar Jul 02 '20 13:07 mklabs

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.

josator avatar Aug 07 '20 16:08 josator