Jump to content

Recommended Posts

I'm currently adding to my Eddie Gluskin mod and I wanted to give him a knife as a starting weapon that doesn't break,

 

does anyone have any tutorials on making custom weapons/tools for characters? Also editing recipes characters already know? I'd like him to start with the ability to make a sewing kit.

 

Thank you :)

@PsychologistTongue 

The rest is just copy-pasting existing game code and tweaking it to your needs.

As for knowing the sewing kit recipe, you can put this in the character's master_postinit:

inst:DoTaskInTime(0, function(inst)
	inst.components.builder:AddRecipe("sewing_kit")
	inst:PushEvent("unlockrecipe", { recipe = "sewing_kit" })
end)

 

Edited by rezecib

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...