Jump to content

Recommended Posts

I want to create a weapon that will refuel with horror fuel, for me it turned out to be more difficult than I expected (I am a beginner DST mod maker)
I have a spellcaster in my weapon and it would be great if someone could help me.

local function guitarspell(inst, attacker, target)
    if not inst.components.fueled:IsEmpty() then
      inst.components.fueled:DoDelta(-TUNING.TINY_FUEL)
     end
 end

when the value is "guitarspell" - the weapon does not perform its function, although the percentage of durability is spent

What can be wrong?

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