ExoWest/Source/Exo/Public/Items/HealthBoxBase.h
Kubson96 b7263615c0 feat: add collecting HP and ammo
Player automatically collect HP and ammo when standing on crates. Ammo is collected only for owned gun.
2025-04-18 01:53:08 +02:00

27 lines
476 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "HealthBoxBase.generated.h"
UCLASS()
class EXO_API AHealthBoxBase : public AActor
{
GENERATED_BODY()
public:
AHealthBoxBase();
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float HealthValue = 75.0f;
protected:
virtual void BeginPlay() override;
public:
virtual void Tick(float DeltaTime) override;
};