Jump to content
  • 0

Removing sleep for player 1


mwps

Question

Me and my buddy play splitscreen everyday and im pissed to be tired and have my awerness reduced is there anyway to shutoff sleep for player 1 or for both players? Like a script command or a hotfix or some file deletion? I know it would become unrealistic but its only temporarily and you dont have to do it if you dont want .

 

Like the new forum look good work guys :)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

This should work for both players:

Cheat = {}function Cheat.restoreSleep()    local player1 = getSpecificPlayer(0);    local player2 = getSpecificPlayer(1);    if player1 then        player1:getStats():setFatigue(0);    end    if player2 then        player2:getStats():setFatigue(0);    endendEvents.EveryTenMinutes.Add(Cheat.restoreSleep);

...quick 'n dirty...

 

The problem is I can't test it with the second player so it might or it might not work. You'll have to find out ;)

Link to comment
Share on other sites

<snip>

 

Put that into a text editor and save it as cheat.lua. Then move it to your "media/lua" directory of your zomboid installation. I've written this in a hurry so I couldn't test it, but it should work. If not post here and I will fix it.

 

Cheers

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...