Jump to content

Recommended Posts

hey all, I recently started trying my hand at this mod stuff. I've got my first character down with the very basics. I am now trying to do some fiddling around with traits for this new character. I've got it so hes got more insulation for winter since hes Canadian already. I want to make it so that if he is around other players his damage and sanity increase and both go down if hes alone. Any help would be much appreciated.

for insulation put this code under masterpostinit

inst.components.temperature.inherentinsulation = #

replace the # with whatever number you want.

the multiple player effect is a lot more complicated, but it's going to involve a playerprox component or an event listener ("playerjoined/left")

I know some prefabs have player-based listener effects but I don't remember which ones

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
×
  • Create New...