So im messing around with the first person shooter template. Created actors that are enemies and gave them a health pool. I wanted to create floating damage numbers which I did in probably an incredibly jank way.
All in the enemy’s BP. When an enemy takes damage they save the damage taken as a variable (damage amount). then spawn an actor which displays that damage value.
All in my Floating Text BP. This works perfectly when there is only one instance of my enemy but any more than 1 and all of them besides the first to spawn just display the last damage the “original” took not the amount they should have took.
Does this have something to do with using get actor of class instead of all actors of class? Any help would be appreciated. I am brand new to Unreal and Blueprints.
TLDR: one instance of my enemy shows correct numbers. rest show default if shot first, last damage of “first” enemy if shot 2nd