Don't Starve Together

Don't Starve Together

Don't Drop Everything
How to make a player to drop everything through console while enabling this mod ! (for other user to read this)
Normally if you are host and you have enabled this mod, if you make a player to drop everything through this command:

AllPlayers[x].components.inventory:DropEverything();
(x is player id)

Then he will drop only ONE ITEM, BECAUSE THIS MOD IS ENABLED.

So if you want him to drop everything while enabling this mod, use this command:

function drop(playerno) for i = 1, 25 do AllPlayers[playerno].components.inventory:DropEverything(); end end drop(x)

(x is player id)

--------------------
type this to show player id:
c_listallplayers()
Last edited by Họ Và Tên Pê!!; Sep 19, 2016 @ 1:43am
< >
Showing 1-1 of 1 comments
clearlove Nov 12, 2022 @ 12:19pm 
Why not use
AllPlayers[x].components.inventory:oldDropEverythingFn()

In this mod, the original DropEverything function is stored this way.
< >
Showing 1-1 of 1 comments
Per page: 1530 50