Health Mechanic in Multiplayer
Alright, i'm pretty new to UE4 and i'm working on my first game. Pretty clunky but it works well so far. The project as it stands right now is just a 3rd person shooter, so my goal at the moment is simply putting 2 characters on the map and letting them kill each other. So far, i have all the movement animations, the gun mechanics, etc. i have a line trace so when you fire, there will be an explosion where the trace hits a part of the map (just so you know it actually works). It took a while, but i managed to figure out the replication for it so that the server and all the clients can see all the animations. I know that i probably just need to add something where if the line trace overlaps a player, it will take away some of their health.
So the part i'm stuck on is health and damage. I'm not sure how similar health and damage works in comparison to a singleplayer game. I tried looking at the ShooterGame example but i had no luck, for some reason i can barely find any actual blueprint scripting at all in that game which is really weird.
Anyways i'm getting off topic. Does anyone have an example i can study of players having health and taking damage due to gun shots? I've searched the internet for the past couple hours and haven't come up with anything. Any help at all would be great.
Follow this question
Once you sign in you will be able to subscribe for any updates here