I want to make a game where you get a speed up if you kill an enemy. So I want to know how I can make that if I kill an enemy I get more max speed.
It would be very nice if someone could tell me how to do.
With regards Florian
I want to make a game where you get a speed up if you kill an enemy. So I want to know how I can make that if I kill an enemy I get more max speed.
It would be very nice if someone could tell me how to do.
With regards Florian
Thanks for the answers I appreciate it.
When your enemy is taking damage you can reduce the health and after that check if health is less than or equal to 0. If it is, then cast the Damage Causer parameter from Event Any Damage to Character class and increase the Max Walk Speed in Character Component.
In your logic where the Enemy BP is destroyed, BEFORE it is destroyed, you cast to your character BP. There, you will have a Custom Event, in that custom event, you will Increase CharacterMovement up and then have a delay and move it back to original speed.
OR
You can use a BPI, and everytime any Enemy with that BPI dies, it will call upon that BPI Event inside Character and increase his/her speed.
No problem, don’t forget to upvote and/or choose the correct answer(s) after getting a response.