Hi, I’m helping my son on a project and he have purchased your toolkit as a start for a game.
We are pretty new to Unreal and take it step by step. The toolkit is a great resource!
We are trying to get a random damage system to work and I search for and found a simple solution, I thought I just added a new variable Damage_min in BP_Unit and use it in BP_Ability_MoveAttack with the Damage varible for maximum damage as input to a RandomFloatInRange, the output is the new input to the TakeDamage function, as shown in the picture.
But it will break the KillUnit, in the TakeDamage function, logic in some way so the unit gets killed but is still in the game somehow and when it’s turn next you can’t do any more actions.
We have followed the path in the BP_Unit function Take Damage and can se that it call,s The Kill function but are lost in how to follow it longer.
It’s not possible to watch the Damage variable in the Take Damage function, it’s says (not in scope), but I can se that the Current Health change so the damages works.
Have I made it to simple or is it just one newbie mistake because I don’t understand the UE4 yet?
We are using a clean example map for this testing.