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.
25 lines
490 B
25 lines
490 B
2 years ago
|
#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();
|
||
|
|
||
|
}
|
||
|
|
||
|
|