UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make a slenderman like creature"
// Create a Slenderman-like creature ASlenderman::ASlenderman() { PrimaryActorTick.bCanEverTick = true; MeshComponent = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("Mesh Component")); MeshComponent->SetSkeletalMesh(LoadObject<USkeletalMesh>(NULL, TEXT("/Game/Meshes/Slenderman.Slenderman"))); RootComponent = MeshComponent; CapsuleComponent = CreateDefaultSubobject<UCapsuleComponent>(TEXT("Capsule Component")); CapsuleComponent->InitCapsuleSize(50.0f, 200.0f); CapsuleComponent->SetCollisionProfileName(TEXT("Pawn")); CapsuleComponent->SetupAttachment(RootComponent); }