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

targetting without seeing Target

Yukkitio opened this issue · comments

Hi 'im using your plugin § And love it ! i custom it like i want but have an issue, when i'm facing a wall ( no object or stuff between me and target, but not facing the target), and pressing the target trigger , my cam will do a 180 directly to face the target. So i want to know if i missed a param or something to make it if i don't see the target in the camera field of view i can't target it.

thanks in advance !

Hi, that's a built-in feature of the plugin.

https://github.com/mklabs/ue4-targetsystemplugin/blob/master/TargetSystem/Source/TargetSystem/Private/TargetSystemComponent.cpp#L456-L460

The IsInViewport() method role is exactly that, only allow targeting of actors if they are in the viewport (or camera field of view). So unless you changed the source and disabled that, you shouldn't see the behavior you're describing.

I didn't touch to the code, only use and change some parameter, but i still have the issu.
The only thing i have done to make it smooth for me is that : https://blueprintue.com/blueprint/zzkyk876/

YTB Issue : https://youtu.be/BxLSnMsVljY
My BP and settings : https://youtu.be/YUQA6AbRBx8

And other question, is it possible to make some things whit the actual plugins, when the target locked die , it switch to the next one or disable if no possible target in sight ?