by jaydacosta
Hey guys,
I'm absolutely in love with the trains in this mod. Hands down the best vehicle functionality I've seen in this game, and I've been obsessed with putting them to work in my multiplayer server.
I've built a passenger line that connects a variety of player bases between myself and my friends, and I want to have the train travel automatically between them. Right now it just runs on a time-scheduled loop, but I want to have a condition for seated players. The train schedule has functionality for this, and so far it works great for expedient departures.
For example, the train--when "idle"--will travel between stations every 5 minutes. However, if a player sits down on the waiting train, it will wait 10 additional seconds and then depart for the next stop, regardless of how many minutes are left on the 5 minute timer.
The problem is arrivals. If a player is still seated after the train fully stops at the station, even for a split second, this condition is fulfilled and the train departs 10 seconds after arriving. The only way around this is to stand up while the train is still pulling into station, which can be a little janky.
Is there a way to add a "buffer" to the schedule conditions, so the train won't immediately detect the seated player? As in, can I tell the train to wait 10 seconds for players to disembark, then check for any seated players to leave the station?
For additional clarity, I do have the "Steam n' Rails" add-on and I'm using a andesite casing conductor to control the train.
I'm absolutely in love with the trains in this mod. Hands down the best vehicle functionality I've seen in this game, and I've been obsessed with putting them to work in my multiplayer server.
I've built a passenger line that connects a variety of player bases between myself and my friends, and I want to have the train travel automatically between them. Right now it just runs on a time-scheduled loop, but I want to have a condition for seated players. The train schedule has functionality for this, and so far it works great for expedient departures.
For example, the train--when "idle"--will travel between stations every 5 minutes. However, if a player sits down on the waiting train, it will wait 10 additional seconds and then depart for the next stop, regardless of how many minutes are left on the 5 minute timer.
The problem is arrivals. If a player is still seated after the train fully stops at the station, even for a split second, this condition is fulfilled and the train departs 10 seconds after arriving. The only way around this is to stand up while the train is still pulling into station, which can be a little janky.
Is there a way to add a "buffer" to the schedule conditions, so the train won't immediately detect the seated player? As in, can I tell the train to wait 10 seconds for players to disembark, then check for any seated players to leave the station?
For additional clarity, I do have the "Steam n' Rails" add-on and I'm using a andesite casing conductor to control the train.