Player automatically collect HP and ammo when standing on crates. Ammo is collected only for owned gun.
24 lines
318 B
C++
24 lines
318 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "Items/AmmoBoxBase.h"
|
|
|
|
AAmmoBoxBase::AAmmoBoxBase()
|
|
{
|
|
PrimaryActorTick.bCanEverTick = true;
|
|
|
|
}
|
|
|
|
void AAmmoBoxBase::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
|
|
}
|
|
|
|
void AAmmoBoxBase::Tick(float DeltaTime)
|
|
{
|
|
Super::Tick(DeltaTime);
|
|
|
|
}
|
|
|