The International Simutrans Forum

Development => Scripting Scenarios and AI => Topic started by: Yona-TYT on May 29, 2017, 03:32:39 AM

Title: Build vehicles
Post by: Yona-TYT on May 29, 2017, 03:32:39 AM

I need a clear example of how to use "append_vehicle(player_x pl, convoy_x cnv, vehicle_desc_x desc)" to assemble vehicles.

This is a bit confusing for me.  :-[
Title: Re: Build vehicles
Post by: Dwachs on May 29, 2017, 06:13:21 AM
You can have a look at the sample AI

https://github.com/aburch/simutrans/blob/master/simutrans/ai/sqai/vehicle_constructor.nut