heres the coding for the train
Railway
icon='railway.dmi'
israil=1
N_S
icon_state="n-s"
E_W
icon_state="e-w"
N_E
icon_state="n-e"
N_W
icon_state="n-w"
E_S
icon_state="s-e"
W_S
icon_state="s-w"
E_W_S
icon_state="e-w-s"
E_W_N
icon_state="e-w-n"
N_S_E
icon_state="n-s-e"
N_S_W
icon_state="n-s-w"
Train_Stations
name="Train Station"
Entered(var/mob/m)
..()
if(ismob(m) && loading==1)
m.riding=trains
trains.passengers.Add(m)
m.icon_state="n"
m.justgotin=1
Stationn
icon_state="stationn"
Statione
icon_state="statione"
mob
var/obj/train/riding=0
var/justgotin=0
Move()
if(riding && riding.loading==0) return 0
..()
if(riding && riding.unloading==1 && justgotin==0)
riding.passengers.Remove(src)
riding=0
icon_state=initial(icon_state)
How can i fix this it just stays there and doesnt move