Pls... help me for these 2 errors

Why begin play is said to these…?


And not allowed to ProjectileClass

Are you able to compile?

yeh…Sayar.

that is eroor hader file.

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include “CoreMinimal.h”
#include “GameFramework/Pawn.h”
#include “PawnBase.generated.h”

class UCapsuleComponent;
class AProjectileBase;

UCLASS()
class TOONTANKS_API APawnBase : public APawn
{
GENERATED_BODY()

private:
// COMPONENTS
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = “Components”, meta = (AllowPrivateAccess = “true”))
UCapsuleComponent* CapsuleComp;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = “Components”, meta = (AllowPrivateAccess = “true”))
UStaticMeshComponent* BaseMesh;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = “Components”, meta = (AllowPrivateAccess = “true”))
UStaticMeshComponent* TurretMesh;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = “Components”, meta = (AllowPrivateAccess = “true”))
USceneComponent* ProjectileSpawnPoint;

	// VARIABLES
	UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Projectile Type", meta = (AllowPrivateAccess = "true"))
	TSubclassOf<AProjectileBase> ProjectileBase;

public:
// Sets default values for this pawn’s properties
APawnBase();

protected:

void RotateTurrent(FVector LookAtTarget);

void Fire();

virtual void HandleDestruction();

};

Error Header file. **

The code you showed before was AProjectileBasse with 2 s’

Teacher… I solved . So Sorry for trouble shooting.Becasue of My Actor class name is Create with ProjectileBassed . In creating time, Folder creating will be a problem. So , now i remember this name and solved. Hee Heee

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms