Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

targetting without seeing Target #35

Open
Yukkitio opened this issue Oct 16, 2023 · 3 comments
Open

targetting without seeing Target #35

Yukkitio opened this issue Oct 16, 2023 · 3 comments

Comments

@Yukkitio
Copy link

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 !

@mklabs
Copy link
Owner

mklabs commented Oct 20, 2023

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.

@Yukkitio
Copy link
Author

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

@Yukkitio
Copy link
Author

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants