Code: Select all
switch (FEAT_ROADVEHS, SELF, switch_myitem_articulated_0, extra_callback_info1) {
return CB_RESULT_NO_MORE_ARTICULATED_PARTS;
}
switch (FEAT_ROADVEHS, SELF, switch_myitem_articulated_1, extra_callback_info1) {
1: return myitem;
return CB_RESULT_NO_MORE_ARTICULATED_PARTS;
}
switch (FEAT_ROADVEHS, SELF, switch_myitem_articulated_2, extra_callback_info1) {
1..2: return myitem;
return CB_RESULT_NO_MORE_ARTICULATED_PARTS;
}
switch (FEAT_ROADVEHS, SELF, switch_myitem_articulated, cargo_subtype) {
0: switch_myitem_articulated_0;
1: switch_myitem_articulated_1;
2: switch_myitem_articulated_2;
return CB_FAILED;
}
...
graphics {
articulated_part: switch_myitem_articulated;
I know, that refitting length can be perfomed by replacing some vehicles by invisible 1-length carriage with no capacity,
but it is an ugly hack.
Is it possible to dynamically change consist of articulated vehicle?
"possible"=="fix code without large effort, without much code mock-up and risk of invalid pointers"