Public_Transportation
var/mob/pos
Sub_Way
icon='subway.dmi'
icon_state=""
Front_Car
icon_state="front"
dir=NORTH
owner="Cab"
Move()
..()
for(var/mob/vehicles/Public_Transportation/T in oview(3,src))
spawn()
if(T.owner==src.owner)
if(src.dir==EAST)
T.Move(locate(src.x-T.pos,src.y,src.z))
if(src.dir==WEST)
T.Move(locate(src.x+T.pos,src.y,src.z))
if(src.dir==NORTH)
T.Move(locate(src.x,src.y-src.pos,src.z))
if(src.dir==SOUTH)
T.Move(locate(src.x,src.y+src.pos,src.z))
Middle_Car
icon_state="middle"
owner="Cab"
pos=1
Rear_Car
icon_state="back"
owner="Cab"
pos=2
I haven't tested it yet...but I'm not quite sure it'll work the way I need it to. PLEASE, give your insights or comments...either helpful or otherwise.
Like:
First car proc:
Pull first car in dir;
Pull second car in dir;
Pull third car in dir;
Pull fourth car in dir;
etc.
Repeat.