// Fill out your copyright notice in the Description page of Project Settings. #include "BasePawn.h" #include "Components/CapsuleComponent.h" // Sets default values ABasePawn::ABasePawn() { // Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCanEverTick = true; CapsuleComp = CreateDefaultSubobject(TEXT("Capsule Collider")); RootComponent = CapsuleComp; BaseMesh = CreateDefaultSubobject(TEXT("Base Mesh")); BaseMesh->SetupAttachment(RootComponent); TurretMesh = CreateDefaultSubobject(TEXT("Turret Mesh")); TurretMesh->SetupAttachment(BaseMesh); ProjectileSpawnPoint = CreateDefaultSubobject(TEXT("Projectile Spawn Point")); ProjectileSpawnPoint->SetupAttachment(TurretMesh); } // Called every frame void ABasePawn::Tick(float DeltaTime) { Super::Tick(DeltaTime); }