How can I have an Actor BP pull a variable from the mycharacter BP?
I'm wanting to setup the player's attack value. I have a variable called Attack and it is set to ten. Now in my Enemy Actor BP, I need to call that variable as its going to be the damage. I am trying to set up an interface. I have a function called get attack value with an input of interger called attack. But where I am confused is I am not sure how to directly pull that variable from the player BP and plug it in to the get attack value function.
You could try something like the following:
When attacking set a Bool variable to True and False when not attacking.
Use the Cast To node to pull the variables supplied from your PlayerCharacter Blueprint. Attack Damage is a variable that is created in the PlayerCharacter Blueprint and the Attacking Bool mentioned above is also pulled. Only variable you need in your Enemy Blueprint is an overall health value to subtract from (I also destroy it after Health is 0).
Hope this helps,
answered May 28 '14 at 04:00 PM
DizzyWes ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here