From e3649d475213cc8f261c98064a705d8a09c2e6e8 Mon Sep 17 00:00:00 2001 From: Louis Hobbs Date: Thu, 1 Jun 2023 02:24:35 +0100 Subject: [PATCH] Add secondary Interact function in Interactable Component --- Source/Nakatomi/InteractableComponent.cpp | 4 ++++ Source/Nakatomi/InteractableComponent.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Nakatomi/InteractableComponent.cpp b/Source/Nakatomi/InteractableComponent.cpp index a0fc5f6..c1fdc60 100644 --- a/Source/Nakatomi/InteractableComponent.cpp +++ b/Source/Nakatomi/InteractableComponent.cpp @@ -23,3 +23,7 @@ void UInteractableComponent::BeginPlay() void UInteractableComponent::Interact() { } + +void UInteractableComponent::Interact(AActor* damagedActor, float damage, const UDamageType* damageType, AController* instigatedBy, AActor* damageCauser) +{ +} diff --git a/Source/Nakatomi/InteractableComponent.h b/Source/Nakatomi/InteractableComponent.h index 03939ff..e405f17 100644 --- a/Source/Nakatomi/InteractableComponent.h +++ b/Source/Nakatomi/InteractableComponent.h @@ -21,6 +21,9 @@ protected: virtual void BeginPlay() override; public: - UFUNCTION() + void Interact(); + + void Interact(AActor* damagedActor, float damage, const UDamageType* damageType, AController* instigatedBy, AActor* damageCauser); + };