Tests:
- With the cargo wagon selected...
Code: Select all
/c game.player.selected.insert{name="iron-plate",count=100}
Code: Select all
/c game.player.selected.get_inventory(defines.inventory.cargo_wagon).remove{name="iron-plate",count=100}
- With the fluid wagon selected...
Code: Select all
/c game.player.selected.insert_fluid{name="water",amount=100}
Code: Select all
/c game.player.selected.remove_fluid{name="water",amount=100}