In this example, we're going to build another AI type called a follower agent. This time, a group of followers will stay together and move toward their leader. The leader, on the other hand, is still the same seeking agent that will randomly move around the sandbox, completely oblivious to the group of followers behind it.
To create followers, we'll use multiple steering forces to combine, separate, and align our agents to the leader agent they are following.
Create the Lua file as follows:
require "AgentUtilities"; ...