Trace on server hit client actors

anonymous_user_908c4e73
Thu, 19 Feb 2015 10:34:29 +0000
World Creation

In the code of my character, I’m performing a capsule trace (sweep single) in order to determine if there is something in the way of my character before doing a special move.

When I execute that code on a client, it’s working fine, but whenever I try it on the server, I have a strange behavior: the trace is hitting a character that is supposed to be only on the client!

That is, on server, I have my character C1 doing the trace test, and this same character appears as C2 on the client of another player. But when on the server I’m doing the trace test while ignoring actor C1, I’m hitting actor C2… which is that same actor but on the client!

How is it possible? How can I avoid that?

3 posts - 1 participant