Jump to content

adding hammer use to the multitool pickaxe possible?


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)
Link to comment
Share on other sites

 

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!?

Link to comment
Share on other sites

Archived

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

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...