Hi,
Thanks for the course, it has been great building this.
I have added med kits to the game, but recall that it was mentioned that the TakeDamage function could be used to apply negative damage to heal. TakeDamage takes an event instigator though, a controller reference, but I can’t get a controller for an AActor can I (well, I can’t work out how), so I’ve just called the HP variable on my shooter character and added the health directly (checking that MaxHP hasn’t beed exceeded).
Is that a bad approach? How can I use the TakeDamage function from a collision with a Med Kit, if that is the better approach?
Thanks,
Matthew