Download

Enemy targeting system gone wrong!

Hi all,

I’m making a small hack and slash game, I’ve nearly completed all of my enemies thanks to BluemanArt tutorials (thank you very much!!), although I’ve ran into some trouble. Hopefully someone can guide me in the right direction.

I need my camera to lock onto the enemy on TAB key press, as my attacks all play in the direction of my camera. At the moment, the scripting that I’m using is struggling / refusing to cast to my Boss location vector variable. Here is some snipets of my script. Any help would really be appreciated, I’m not trying to perfect my enemy targeting skills, rather create a small level for a portfolio. I’m happy if anyone can point me in the right direction or even advice on a purchase from the market place, but the ones I’ve found dont seem to be suitable.

The script always seems to break down when I cast to my Arena_GameInstance blueprint, this seems to be the culprit, but I’m lost on how to fix it. Please see the bottom for a video

b236d87d59505cbceca86260817911863b7820cd.jpeg

06ee018e4fa8d76a46a3c0b07390f32be9a35f4e.jpeg

29f83f3a0b66f574e2ed6220d98036d628e2d216.jpeg

e4196ea6551edb3b1975194e69c77c930247de3f.jpeg

a8f6e8bc17df4d41b58e94c37c21bd6b6c85a9be.jpeg

Thanks again for any help / direction.

Your Gate gets never entered.
You Toggle it from open / close, but you don’t enter it.

11d4ae31e3faf0a0c43d244e76b038c5868395af.jpeg