Hello. I'm studying AI blueprints with Asher Einhorn tutorial on youtube and need to kill the enemy (not me) when I shoot de bullet on it. But when I do it, my players die instead of enemy. I tried to put a public variable of the enemy (AIShooter_Character), adding it to the target of Destroy Actor on CharacterBase (both have inherit from it - player and enemy), etc, but nothing happens.. The Enemy didn't die (in this case my player was alive). On below, like show the image, I left the code as it was usually when the player dies. With someone else can help me to fix this issue.
asked Jun 07 '16 at 09:40 PM in Blueprint Scripting
If the Bullet or the Trace (whatever you use) you need to call the "Interface Message" and not the Function that has the same name (Node has a little envelope and Target Pin). Otherwise you execute the Function on yourself instead of the Target. For the Target of the Interface provide the Actor you Hit and everything should work fine.
Good Luck and have Fun =)
answered Jun 07 '16 at 10:10 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here