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"

Server not detecting component collision

I created a player class that uses a knife as one of its weapon. The knife is a component of the player class. When the knife overlaps another player it destroys that player. However when one player is the server and the other is a client, the server is able to destroy any player like it's suppose to but the client destroys itself when it hit another player. I tried messing with multicasting, but it still didn't work. I used a print string node to see what the player is detecting, the server detects the other players but the clients only detect themselves.

Here's the code from the player class that handles the knife collision: alt text

Product Version: Not Selected
Tags:
ue4_problem.png (297.8 kB)
more ▼

asked Apr 13 '15 at 01:32 AM in Blueprint Scripting

avatar image

MAL_Ware
21 1 1 3

avatar image invisiblebattles Apr 11 '16 at 05:32 PM

Did you ever find a solution for this or figure it out?

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

2 answers: sort voted first

Are you sure is nice / required workflow, to detect collision on client and send a server command to do action based on it? I Assume action happens on server and on client simultaneously, if that's true, collision happens on server and on client as well, which means its good practice to completely ignore/only spawn visuals for client collision detection and execute all important logic on server, to prevent cheating and ping based dsync.

more ▼

answered Apr 11 '16 at 07:27 PM

avatar image

CriErr
1.2k 57 19 55

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

Bump because this is still an issue. Client detects collision at a different point than server. Test for yourself. Just put a huge collision box in your level. Walk into it and you'll see that the client detects collision way before server does. Its as if the server thinks the collision box is much smaller than the client-side one.

more ▼

answered Jan 19 '19 at 12:00 AM

avatar image

JTXPbrah
81 5 7 10

(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