ue4-targetsystemplugin
ue4-targetsystemplugin copied to clipboard
Can't lock on unless directly facing
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:
Is not that what you're looking for ? That should be what you get with the default settings.
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.