How to get a shield that negates damage?
Hello, i am trying to create a shield that you get from crossing a box (blueprint from static mesh actor) that is attatched to my controlled ball, to either negate incoming damage once, or return equal health upon taking damage, then to be toggled off until crossing another boost-box
However i cant seem to reference the shield BP antwhere else than in my level blueprint, where i cant put the rest of my pickups that damage the player, if that makes any sense?
If i try getting actors/components from class, it needs an "object" to target, and i dont know what it wants from me :/
its alot like your other question, you have your shield actor and you just need a littlbe bit of script in it which runs when the player overlaps it. in this case we can just set a variable in the player (HasShield) to true. then in the player you can have the script needed to enact the changes to damage.
the other option would be to create a actor which gets attached to the player either as a child component or as its own actor to intercept the damage but thats a bit more complex.
answered Feb 03 '19 at 10:23 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here