Code: Select all
local enginelist = AIEngineList(AIVehicle.VT_RAIL);
local engine;
enginelist.Valuate(AIEngine.IsWagon);
enginelist.KeepValue(1);
enginelist.Valuate(AIEngine.IsValidEngine);
enginelist.KeepValue(1);
With the standard train set this code snippet still gives me the cargo wagons for coal, goods etc. for the all four railtypes (Maglev, Monorail, Electrified,...) even though I cant build them in the year 1950... I thought that the future rail wagons shouldn't survive a valuate with IsValidEngine (which "Checks whether the given engine type is valid and buildable by you.") ?
Thanks