UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"spawn a creature"
void UWorld::SpawnCreature(TSubclassOf<ACreature> CreatureClass, FVector SpawnLocation) { if (CreatureClass) { FTransform SpawnTransform; SpawnTransform.SetLocation(SpawnLocation); World->SpawnActor<ACreature>(CreatureClass, SpawnTransform); } }