Factorio

Factorio

查看统计:
DragonStryder 2016 年 4 月 19 日 下午 2:13
dropping items with Z
you can drop items with Z is there a way to drop them all at once?
< >
正在显示第 1 - 3 条,共 3 条留言
daniel0674 2016 年 4 月 19 日 下午 3:43 
No, and why would you want that?
If you want to drop them because you want to give them to another player, you don't need to. With the item stack in hand CTRL+click the other player (like with chests) and they will be transferred.

If you really want to drop them on the floor you can do it using console commands. But I'm not responsible for the cleanup later.
To drop the current stack in hand:
/c game.local_player.surface.spill_item_stack(game.local_player.position, game.local_player.cursor_stack); game.local_player.cursor_stack.clear()
To drop your whole main inventory:
/c for k, v in pairs(game.local_player.get_inventory(defines.inventory.player_main).get_contents()) do game.local_player.surface.spill_item_stack(game.local_player.position, {name=k, count=v}) end game.local_player.get_inventory(defines.inventory.player_main).clear()
DragonStryder 2016 年 4 月 19 日 下午 4:00 
引用自 daniel0674
No, and why would you want that?
If you want to drop them because you want to give them to another player, you don't need to. With the item stack in hand CTRL+click the other player (like with chests) and they will be transferred.

If you really want to drop them on the floor you can do it using console commands. But I'm not responsible for the cleanup later.
To drop the current stack in hand:
/c game.local_player.surface.spill_item_stack(game.local_player.position, game.local_player.cursor_stack); game.local_player.cursor_stack.clear()
To drop your whole main inventory:
/c for k, v in pairs(game.local_player.get_inventory(defines.inventory.player_main).get_contents()) do game.local_player.surface.spill_item_stack(game.local_player.position, {name=k, count=v}) end game.local_player.get_inventory(defines.inventory.player_main).clear()

it was for other players yes :) didn't know about the CTRL+click thanks tho!
phillip_lynx 2016 年 4 月 20 日 上午 2:34 
引用自 DragonStryder
引用自 daniel0674
No, and why would you want that?
If you want to drop them because you want to give them to another player, you don't need to. With the item stack in hand CTRL+click the other player (like with chests) and they will be transferred.

If you really want to drop them on the floor you can do it using console commands. But I'm not responsible for the cleanup later.
To drop the current stack in hand:
/c game.local_player.surface.spill_item_stack(game.local_player.position, game.local_player.cursor_stack); game.local_player.cursor_stack.clear()
To drop your whole main inventory:
/c for k, v in pairs(game.local_player.get_inventory(defines.inventory.player_main).get_contents()) do game.local_player.surface.spill_item_stack(game.local_player.position, {name=k, count=v}) end game.local_player.get_inventory(defines.inventory.player_main).clear()

it was for other players yes :) didn't know about the CTRL+click thanks tho!
An other way, but not so comfortable, is to place a chest and put the things into it. The other player can then take them out :).
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50

发帖日期: 2016 年 4 月 19 日 下午 2:13
回复数: 3