I have a simple EXP system setup I found over on the forums. It works as intended. I can give my character experience through the MyCharacter BP. My question is, I want that when an actor dies, it turns on the Give Exp function. However, I can only do this in the MyCharacter BP. So at the end of the enemy’s AI BP, once it dies, i need to trigger something, a bool maybe, that links to the MyCharacter BP. And then in the MyCharacter BP I have it check to see if that trigger has been turned on it will then run the Give XP function. Any Ideas?
Get all actors of class = MyCharacter BP
Cast.
Set xp variable = current xp variable + enemy xp value
This is the way I have figured out how to do it. I created an Interface and made a function called “EnemyXp”, set an input as a bool and i called it death.
Then in my Enemy AI BP, right before it dies, i called that interface function.
Then in my Character BP, use Event EnemyXp to trigger GiveXp event. Works great!
1 Like