Overriding existing TakeDamage() Function?

Hello, I wanted to check something about the creation of our own TakeDamage() function.

AActor already has a TakeDamage() function:

But are we able to create our own here (without having to use “virtual” and “override”) because we’re extending a UActorComponent and this has no inheritance from AActor?

Correct. It’s a brand new function that is being used to add to the OnTakeDamage delegate (I only thought about the next section when answering your previous question :sweat_smile:).

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms