switch(FEAT_TRAINS, SELF, maglevhopper_layer0_01, ([STORE_TEMP(COLOUR_RED, 0x100) , cargo_type_in_veh])) { IORE: return spritegroup_maglevhopper_wagon_layer; default: return spritegroup_maglevhopper_wagon_layer; } switch(FEAT_TRAINS, SELF, maglevhopper_layer0_00, ([STORE_TEMP(COLOUR_BLUE, 0x100) , cargo_type_in_veh])) { COAL: return spritegroup_maglevhopper_wagon_layer; default: return maglevhopper_layer0_01; } switch(FEAT_TRAINS, SELF, maglevhopper_switch, ([getbits(extra_callback_info1, 8, 8)])) { 0: maglevhopper_layer0_00; //wagon layer return spritegroup_maglevhopper_cargo_layer; //cargo layer }