Jump to content

Recommended Posts

I already made a mutlitool that also functions as shovel, so I'd asume it's possible. I used the following lines:

--We want it to allow use as a shovel:inst.components.tool:SetAction(ACTIONS.DIG, 1.25)    --[...]--This is just the durability going down with each use:inst.components.finiteuses:SetConsumption(ACTIONS.DIG, 2)
Edited by Mobbstar

 

I already made a mutlitool that also functions as shovel, so I'd asume it's possible. I used the following lines:

--We want it to allow use as a shovel:inst.components.tool:SetAction(ACTIONS.DIG, 1.25)    --[...]--This is just the durability going down with each use:inst.components.finiteuses:SetConsumption(ACTIONS.DIG, 2)

thanks, so i guess changing shovel for hammer would work? i suck at modding!

 

--We want it to allow use as a hammer:

inst.components.tool:SetAction(ACTIONS.HAMMER)

--[...]

--This is just the durability going down with each use:

inst.components.finiteuses:SetConsumption(ACTIONS.HAMMER, 1)

 

something like that?

 

edit: well...there are no multitools.cfg in the files!?

Edited by julz1981

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