implemented pick up item
This commit is contained in:
@ -31,7 +31,7 @@ public:
|
||||
UFUNCTION(BlueprintCallable, Category = "Utils")
|
||||
bool AddItemToInventoryByID(FName ID);
|
||||
|
||||
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, VisibleAnywhere)
|
||||
class AHYInteractableActor* CurrentInteractable;
|
||||
|
||||
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
|
||||
@ -43,14 +43,15 @@ public:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int32 InventoryWeightLimit;
|
||||
|
||||
//interacts with the Interactable objects
|
||||
UFUNCTION(BlueprintCallable, Category = "Utils")
|
||||
void Interact();
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
//interacts with the Interactable objects
|
||||
void Interact();
|
||||
|
||||
//abstract function to override in order to
|
||||
//bind actions or axis to different input components
|
||||
virtual void SetupInputComponent() override;
|
||||
|
Reference in New Issue
Block a user