Hi, I have a projectile shooting from a barrel (using the player Controller) if that projectile then hits a target box collision the player win. I have all of that.
Now I’m trying to detect what happens if the player misses.
How could I do that? I was thinking if the projectile had a cound down that would despawn and the player loses.
Maybe a different box collision behind the target but i think that would take a lot of power and slow down the game.
I don’t know what to do, if anyone can help. Thanks
Hit events return the actor which was hit in its output pin. so on hit event do a branch off a hit actor = whatever the target class is. If true, goto win logic, if false, do nothing or lose. If you have multiple target classes, you can give them all a tag, and check if the hit target has the tag. Or use a blueprint interface with a function like GetTargetValue and call it on hit actor via message. IF the hit actor uses interface, it can return a score or whatever, and if projectile hits some useless scenery without the interface, no point will be returned.