I have an AI Titan who an AoE attack. I’m using a sphere overlap to make this attack but always hit. It’s doesn’t matter if my player is in range. If i was ever in range, it’s gonna hit me.
Titan Attack:
Titan BBT Attack:
Receive Dmg Player:
I have an AI Titan who an AoE attack. I’m using a sphere overlap to make this attack but always hit. It’s doesn’t matter if my player is in range. If i was ever in range, it’s gonna hit me.
Titan Attack:
Titan BBT Attack:
Receive Dmg Player:
I don’t really understand the language you are using. But I might see the problem.
Inside your “Titan” class, the AttackPlayer event, why do your “sphere overlap actors” originate from the player location? Why not from your “Titan” class? Because you need to understand that your “Titan” is the one that should emit the trace since the attack came from it.
I might be wrong because I don’t really understand the language there.
Thank’s for reply. I’m starting in this world so i don’t know if my code it’s ok or not. When u talk about the language, how could you do it? I wanna my titan hit the floor with your feet and apply damage if my player is on range
You want your trace to be from the enemy location and NOT from the player.
This is what I did in my enemy class. Change the “PlayerCharacterBase_C” to your player class.
Thank’s dude! That works for me