Files
open-conflict/Source/OpenConflict/PlayerCharacter/DDICharacter.cpp
2025-11-26 17:20:59 -05:00

40 lines
1.0 KiB
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "DDICharacter.h"
// Sets default values
ADDICharacter::ADDICharacter()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
bReplicates = true;
// bReplicateMovement = true;
CameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraComponent"));
CameraComponent->SetupAttachment(GetMesh());
CameraComponent->SetRelativeLocation(FVector(0.0f, 0.0f, 50.0f));
CameraComponent->bUsePawnControlRotation = true;
/* Was going to add, but showed up as duplicate.
//CharacterMeshCompenent = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("CharacterMeshComponent"));
// CharacterMeshCompenent->SetupAttachment(CameraComponent);
*/
}
// Called when the game starts or when spawned
void ADDICharacter::BeginPlay()
{
Super::BeginPlay();
}
// Called every frame
void ADDICharacter::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}