Jump to content
YeeAmFam

Spawn Player With Low hunger, thirst and health.

Recommended Posts

Hey fellas! First time here, but I just want to get straight into it. 

 

Does anybody know how I can set the player's hunger and thirst to low in init.c?

I've managed to set the health to 1, but I have to be able to set the initial hunger and thirst to 1 as well.

 

Oh and is there a more active dev channel somewhere? Discord, maybe?

Edited by YeeAmFam
I'm just forgetful

Share this post


Link to post
Share on other sites
class CustomMission: MissionServer
{




	override void InvokeOnConnect(PlayerBase player, PlayerIdentity identity)
	{
		super.InvokeOnConnect(player, identity);
		player.GetStatEnergy().Set(1);
		player.GetStatWater().Set(1);
	}
};

There is a modding Discord around (probably not official though), but unfortunately I don't have the address to it. 

  • Like 2

Share this post


Link to post
Share on other sites
22 hours ago, NoBeansForMe said:

class CustomMission: MissionServer
{




	override void InvokeOnConnect(PlayerBase player, PlayerIdentity identity)
	{
		super.InvokeOnConnect(player, identity);
		player.GetStatEnergy().Set(1);
		player.GetStatWater().Set(1);
	}
};

There is a modding Discord around (probably not official though), but unfortunately I don't have the address to it. 

Brillian! Thank you!

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×