Sign in to follow this  
manhun1222

Other player can use console, how?

Recommended Posts

manhun1222    0

Hello guys!

So we are playing in don't starve together with my friend and if i have too small HP and i dont want to die i type in console: c_sethealth(1) , but my friend cant use this command (looks like only server hoster can use this cheats),how can he use this cheat?

Sorry for my bad english!

Merry Christmas!

Share this post


Link to post
Share on other sites
Zillvr    1755

As far as I know, there is no way for clients to use console commands or be given permission to use them. Only the host of the server can use the console and have an effect in-game.

 

But if you want to heal your friend with your console while you are host, you can try the following code:

c_find("wilson"):c_sethealth(1)

If your friend isn't using Wilson you can change the character name wilson to whichever character your friend is using. This will use the sethealth command on the character found. If there are other wilson's on the server, sadly I don't know the right command for it. Sorry. Hope this helps somewhat.

 

Again, only hosts are allowed to use the console so he won't be able to heal you if you are the host. Good luck.

Share this post


Link to post
Share on other sites
Enbo    24

sniperino

Really? You can't use commands as a client?

Enter a public server, open the console and type that in:

TheWorld.minimap.MiniMap:ShowArea(0,0,0,9000)

Or c_gonext("charactername").

Share this post


Link to post
Share on other sites
Zillvr    1755

Really? You can't use commands as a client?

Enter a public server, open the console and type that in:

TheWorld.minimap.MiniMap:ShowArea(0,0,0,9000)

Or c_gonext("charactername").

You're right, clients can use the console. But they can't use the console to cheat by spawning things in, or change their health, sanity, hunger like hosts can. And that was what OP was wondering about. Clients can't use the console to its full capacity.

 

Sorry for not being clear.

Share this post


Link to post
Share on other sites
rezecib    3152

@Zillvr, Unfortunately that won't work because c_sethealth() is actually a shorthand function that refers specifically to the player entering the command.

 

@manhun1222, I believe this will work, though: c_find('wilson').components.health:SetPercent(1)

Share this post


Link to post
Share on other sites
manhun1222    0

@Zillvr, Unfortunately that won't work because c_sethealth() is actually a shorthand function that refers specifically to the player entering the command.

 

@manhun1222, I believe this will work, though: c_find('wilson').components.health:SetPercent(1)

Thanks you It's works!

Share this post


Link to post
Share on other sites
Sarcen    21

I've heard you can add other players as admin in

"Documents/Klei/DoNotStarveTogether/save/adminlist.txt" (source: http://forums.kleientertainment.com/topic/47206-admin/)

 

Which might allow them to do console commands. I've also noticed that if you press control when the console is open it says REMOTE infront of the command, which might mean it performs the command remotely (which would be required for several commands since local data simply isnt available to the client).

 

But.. this is just speculation, might be worth testing tho.

Share this post


Link to post
Share on other sites
Ridden    0

@Ridden, c_find("wilson").components.health:SetInvincible(true)

or, if you are using remote commands, just c_godmode().

Thanks, I'll try
 
(if I host works just c_godmode (). If I do not host commands do not work at all)

Share this post


Link to post
Share on other sites

While going through the games console commands I did find the command "ConsoleCommandPlayer" along with "CHEATS_ENABLED." I don't know if the cheats enabled command works as I have not tested it but this might be your solution.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this