I would like to do 4 things:
1) Place icons on a locomotive, cargo wagon or fluid wagon so it shows up in the game (could be with or without alt view, I'm not picky)
2) Place an icon on locomotive, cargo wagon or fluid wagon so it shows up on the mini map.
3) Place an icon on locomotive, cargo wagon or fluid wagon so it shows up in map mode.
4) Place an icon on locomotive, cargo wagon or fluid wagon so it shows up on the train map.
The icon has to stay over the vehicle and moving it on_tick() is out of the question.
Is any of that possible from LUA?
How to place an icon on a vehicle?
Re: How to place an icon on a vehicle?
1.
2. No
3. No
4. No
Code: Select all
/c
vehicle = game.player.selected
rendering.draw_sprite{
sprite = "item/iron-plate",
render_layer = "entity-info-icon-above",
target = vehicle,
target_offset = {0,0},
surface = vehicle.surface,
forces = {vehicle.force},
only_in_alt_mode = false,
}
3. No
4. No