x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.13
Tags:
more ▼

asked Nov 10 '16 at 05:06 AM in Blueprint Scripting

avatar image

iwerli
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question