UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"a lion"
ALion::ALion() { PrimaryActorTick.bCanEverTick = true; MeshComponent = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("Mesh Component")); RootComponent = MeshComponent; AIControllerClass = ALionAIController::StaticClass(); // Set the lion's stats Health = 100.0f; AttackDamage = 10.0f; AttackRange = 100.0f; MovementSpeed = 500.0f; }