Author Topic: [Request] Control the vehicles in the depot.  (Read 232 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 773
  • Helpful: 19
    • Simutrans-BLOG
  • Languages: ES
[Request] Control the vehicles in the depot.
« on: January 07, 2017, 05:26:25 AM »

It would be nice to have a function that looks like "is_schedule_allowed (pl, schedule)", but to control the vehicles that start from  the deposit.

A example is:
Code: [Select]
is_vehicle_allowed (pl){
    return result = is_vehicle_correct(pl, vehicle_name, load, station_nr)
}

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4072
  • Helpful: 146
  • Languages: EN, DE, AT
Re: [Request] Control the vehicles in the depot.
« Reply #1 on: January 08, 2017, 10:04:18 AM »
You want to restrict vehicles for a certain player? That is certainly possible.
Parsley, sage, rosemary, and maggikraut.

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 773
  • Helpful: 19
    • Simutrans-BLOG
  • Languages: ES
Re: [Request] Control the vehicles in the depot.
« Reply #2 on: January 08, 2017, 11:24:35 AM »
You want to restrict vehicles for a certain player? That is certainly possible.
I'm afraid it's not very useful for the tutorial.

The type of load is more useful. Something like "vehicle.accepts_good.good_desc_x (load_type)"