Best way to set up MP kill feed?

I am currently learning to use UE4 for MP games and was wondering what the best approach for making a Kill Feed would be?

I currently have the game set up so that when you first launch the game it asks you to set a username, then when you spawn in, it saves that username to a variable on the character.

I have a simple projectile set up so that it can be fired and collide with pawns.

What would be my best way of getting the game to print string the has hit ?

Sorry if this is overly complicated!

You can get the name of the hit actor like this:

22133-breakhitresult.png

If you realy only want to print the Name of the Hit Actor, then ryanjon2040 Answer is the way to go.

But a MP Kill Feed is something else i guess. You want some kind of message flashing on the screen to everyone when some gets killed or? Like “eXi killed Hodgeasaurus”. Maybe with some fance Weapon Symbol.

I guess you would need your Server to do this. You would need a function that has the Killer and the Victim as some kind of Input and this function needs to be called on the server and multicasted to everyone else. I can’t tell you the exact algorithm etc, because that would be too much work, but you could have a look at the ShooterGame that Epic Games has setup for us. There should be some kind of Kill Feed implemented. Although it will be C++! So maybe it could be a bit hard to understand what is going on there.

I have tried this function but I want to get the users saved Username that is saved as a string to display. Is there a way to set the Display Name to something user defined?

Its certainly possible. From the hit actor cast it to your player character. Then you will be able to access the username string variable and print it. Let me know if you need screenshots.

Yeah, I downloaded the ShooterGame example but alas it was C++ - I’m trying to make the game just using BP’s for now (I’m starting a games dev course in 2015 and want to get a good foundation of the BP system before I start)

I still recommend you to learn a bit c++. There will be points at which BP won’t work anymore. And you have much more power with c++.