After i made my AI use Behavior Designer for brains i stumbled across some issue with updating enemy health at runtime. So i had this system where each round enemy's health are increased. It worked fine until i made my characters use Behavior Designer. So my old characters updating health fine, but new ones cant update VALUE field, MAX VALUE updates right. (Example of the code and the result. enemy must have 300 value and 300 max value but it only updated max value )
I figured out that turning off OnRespawn event in the Behavior Designer is fixing the issue, but i dont know why it dosent let me change health if i have OnRespawn Event
Currently i have Execute event of OnWillRespawn and next to it is OnRespawn. With just OnWillRespawn it works, but will this set up be right if i dont execute OnRespawn and execute just OnWillRespawn? In the respawner class this events go after each other so thats why i am concerned
I figured out that turning off OnRespawn event in the Behavior Designer is fixing the issue, but i dont know why it dosent let me change health if i have OnRespawn Event
Currently i have Execute event of OnWillRespawn and next to it is OnRespawn. With just OnWillRespawn it works, but will this set up be right if i dont execute OnRespawn and execute just OnWillRespawn? In the respawner class this events go after each other so thats why i am concerned
Attachments
Last edited: