// Function from file: shuttles.dm public int toggleShuttle(string shuttleId = null, string dockHome = null, string dockAway = null, dynamic timed = null) { Obj_DockingPort_Mobile M = null; dynamic dockedAt = null; string destination = null; M = this.getShuttle(shuttleId); if (!(M != null)) { return(1); } dockedAt = M.get_docked(); destination = dockHome; if (Lang13.Bool(dockedAt) && dockedAt.id == dockHome) { destination = dockAway; } if (Lang13.Bool(timed)) { if (M.request(this.getDock(destination)) != 0) { return(2); } } else if (M.dock(this.getDock(destination)) != 0) { return(2); } return(0); }
// Function from file: shuttles.dm public int moveShuttle(string shuttleId = null, string dockId = null, int?timed = null) { Obj_DockingPort_Mobile M = null; M = this.getShuttle(shuttleId); if (!(M != null)) { return(1); } if (Lang13.Bool(timed)) { if (M.request(this.getDock(dockId)) != 0) { return(2); } } else if (M.dock(this.getDock(dockId)) != 0) { return(2); } return(0); }