blaster/Source/Blaster/Weapon/ProjectileWeapon.h

24 lines
419 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Weapon.h"
#include "ProjectileWeapon.generated.h"
/**
*
*/
UCLASS()
class BLASTER_API AProjectileWeapon : public AWeapon
{
GENERATED_BODY()
virtual void Fire(const FVector& HitTarget) override;
private:
UPROPERTY(EditAnywhere)
TSubclassOf<class AProjectile> ProjectileClass;
};