UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a zombie"
// Create a zombie AZombie::AZombie() { PrimaryActorTick.bCanEverTick = true; // Create the skeletal mesh component SkeletalMeshComponent = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("Skeletal Mesh Component")); RootComponent = SkeletalMeshComponent; // Set the skeletal mesh static ConstructorHelpers::FObjectFinder<USkeletalMesh> ZombieMesh(TEXT("/Game/Meshes/Zombie.Zombie")); SkeletalMeshComponent->SetSkeletalMesh(ZombieMesh.Object); }