Login()
..()
density=0
world << "<b>[name]</b> has joined. (Faction: [Faction_Check()]) (Team: [Team_Check()])"
spawn
while(src)
var/X
var/Y
for(var/NPC/soldier/P in s_group)
if(P.leader) continue
if(X>4)
Y++
X=0
for(var/NPC/soldier/R in s_group) if(R.leader)
walk_to(P,locate(R.x+X,R.y-Y,R.z),0,R.speed)
sleep(01)
Well, I spent a few hours trying to come up a way for units to walk in formations. This is all I've come up with.
I know there are ways it could be better, especially since there tends to be "gaps" in the formations instead of forming straight lines.
So, how?
I don't know if it would help or not.
ts