Projectile only causing damage to the actor who fired it.
Hello, Thank you in advance for any help.
My game involves a character firing a projectile to another character. My issue is I was able to create a damage system that works well but only when the character that is getting hit by the projectile is possessed. For example, ill fire a projectile straight up in the air so it will land on the same actor that fired it and it will damage him. If I fire the projectile at another character it won't do anything. BUT if I fire the projectile at the character then quickly possess him it will cause damage. Any idea as to why?
My damage system is a progress bar i have in my user interface
My damage system for each character is in there own blueprints telling the character when its hit by the projectile do damage. My guess is it has something to do with the possession? Like should my damage system be in the level blueprint not the individual character one? if so how would i reference each character?
The reason for this behavior is probably because your event is in the HUD class, which is only created for a player controller. This is why it only works when you posses. Just move it into the character blueprint and it should work just fine.
Follow this question
Once you sign in you will be able to subscribe for any updates here