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"

Host player doesn't die

Hello!Recently,I started creating a third person multiplayer shooter. But the player that hosts the game can't be killed even if the host can kill a player that has joined. I created an int variable named health so when it colides with the bullet it goes to zero and the actor is destroyed,if this helps any of you.

Product Version: UE 4.13
Tags:
more ▼

asked Dec 01 '16 at 12:44 PM in Using UE4

avatar image

FugitiveOx
11 2 2 6

avatar image thevfxguy13 Dec 01 '16 at 07:51 PM

Have you tried seeing if a joined player can kill another joined player? Are your kill functions replicated on the server?

avatar image FugitiveOx Dec 03 '16 at 05:08 PM

Yes,but JUST the host player can kill other players.Also,I recieve a message saying "Attemp to acces Weapon_C_0 via property Weapon,but Weapon_C_0 is pending kill"

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Ah, I believe I know the problem. Sounds like you are most likely only handling damage on the server and not allowing clients to talk to the server. Also, with the pending kill it is most likely because you are trying to destroy the actor before they are "killed" per-say. Some screen shots of your code would help a lot in getting to the bottom of your problem.

Are you using any RPCs when you press the "fire" button?

more ▼

answered Dec 03 '16 at 07:16 PM

avatar image

MrDiggers
45 5 4 8

(comments are locked)
10|2000 characters needed characters left
Your answer
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