blaster/Source/Blaster/Weapon/ProjectileBullet.h

30 lines
626 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Projectile.h"
#include "ProjectileBullet.generated.h"
/**
*
*/
UCLASS()
class BLASTER_API AProjectileBullet : public AProjectile
{
GENERATED_BODY()
public:
AProjectileBullet();
#if WITH_EDITOR
virtual void PostEditChangeProperty(FPropertyChangedEvent& Event) override;
#endif
protected:
virtual void OnHit(UPrimitiveComponent* HitComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit) override;
virtual void BeginPlay() override;
};