I want to create an algorithm to create several AI to move around like a mall, but i don’t want to make each one separately, can i create an algorithm to just put the amount of characters i want, the speed the move and the size of them??.
I think i didn’t explain myself well, imagine a Mall and I want to create the people that walk around, i don’t need to control them, just bots. But Thanks for your answer
Yes you can. You only have to write one smart AI that controls them all.
Unreal Engine has few twitch livestream that explain how to do this, check out "MOBA Minion/Creep AI ":
- The Basics: Blueprint MOBA Minion/Creep AI: The Basics | 01 | Live Training | Unreal Engine - YouTube
- Spawning Waves: Blueprint MOBA Minion/Creep AI: Spawning Waves | 02 | Live Training | Unreal Engine - YouTube
You can also check out the Making Game Ready AI series where they make a Game ready AI from Scratch:
You should also use AI pooling, which means if an AI dies, you can respawn it somehwere else, which is more efficient. I wrote a small script on how to do this:
I know you don’t want to control them, what I meant is, that even though you have multiple AI, you don’t need to have multiple brain, one brain can manage them all. The Making Game Ready AI series will explain all of that + other stuff that you don’t need and can skip
awesome, thank you