Find actors in map and display their variables on HUD
Hey guys, looking for a little guidance on a HUD feature I'm working on. I need to have a HUD display of various variables from actors in the map.
Let's get some stuff out of the way: -I have an actor class (capturezone01) which gets dropped into a map (as many of them as the mapper decides can be in a single map - normally 3-7). -My gametype is already set up, it finds all the actors of type "capturezone01", adds them to an array of actors, and keeps track of points each team has. -The gamemode blueprint already stores an array of actors containing each "capturezone01" actor, so I think I can just use that to determine which actors to draw values from.
The HUD widget needs to be able to (on map load) determine how many "capturezone01" actors are in a map, and for each one, display the following variables on the player's HUD: ShortName, CaptureStatus, Team1Percent, Team2Percent. These variables are all stored in the actor's blueprint, and are all replicated to all clients.
Is anyone able to give me some direction on this? I've been experimenting with various methods for the past few hours. I've tried every way I can think of to get it to work, but still nothing.
I'm thankful for any help you can provide.
asked Apr 16 '16 at 02:02 AM in Blueprint Scripting
Create HUD Blueprint and setup a Custom Event to "Update HUD". Something like this:
You can extract any number of variables you want from wherever they are stored.
Example project attached. In this project I have several actors with different call-signs. These call-signs are displayed in the HUD. Yell out if you get stuck.
Follow this question
Once you sign in you will be able to subscribe for any updates here