You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
awesome_game/Source/TurnBasedTutorial/Trooper.cpp

25 lines
490 B

#include "Trooper.h"
// Sets default values
ATrooper::ATrooper() {
Position.Set(0, 0, 0);
Mesh = CreateDefaultSubobject<UStaticMeshComponent>("Mesh");
RootComponent = Mesh;
static ConstructorHelpers::FObjectFinder<UStaticMesh> MeshToUse(TEXT(
"StaticMesh'/Game/StarterContent/Props/SM_Chair.SM_Chair'"
));
if (MeshToUse.Object)
{
Mesh->SetStaticMesh(MeshToUse.Object);
}
}
// Called when the game starts or when spawned
void ATrooper::BeginPlay()
{
Super::BeginPlay();
}