Can't apply damage to players over a Network

Motanum
Wed, 03 Dec 2014 16:51:05 +0000
Multiplayer & Networking

Hello

I have a problem, I am trying to create a simple SMG type of gun. Using a Line Trace by Channel, I managed to hit a player and cast it to a MyCharacter. If the cast works, then I spawn aExplosion emitter, just to see visually if I am hitting the player. Then i use a Apply Damage Node.

The blueprint for the first paragraph.

http://puu.sh/dfvq3/1eb2974a53.jpg

Then, I do the following to apply the damage to a player. It checks if the current value is 0, if it is not, then it can apply the damage and change the Health variable I have created.
Blueprint.

http://puu.sh/dfvvG/4712ff6061.jpg

When I test this, it behaves wrong. For example, if I use the second player. And I hit the first dude. Nothing happens, the explosion happens, but the damage ain’t applied.

http://puu.sh/dfvUe/e487594ed4.jpg

But if I use the first dude, then it does the damage to itself!

http://puu.sh/dfvXK/19a0df7109.jpg

Please, let me know how I can do this correctly! Thanks!

4 posts - 1 participant