Jump to content

editing shovel damage


marty000123

Recommended Posts

addEvent( "adjustSpeed", true )
addEventHandler("adjustSpeed", getLocalPlayer(),
  function()
    setGameSpeed(tonumber(1.3))
    setWeaponProperty(WEAPON_SHOVEL, "damage", 34)
	  end
)
	addEvent( "removeSpeed", true )
addEventHandler("removeSpeed", getLocalPlayer(),
  function()
    setGameSpeed(tonumber(1))
    setWeaponProperty(WEAPON_SHOVEL, "damage", 4)
  end
)

It tells me that it expected a weapon name at argument 1, but WEAPON_SHOVEL is a valid weapon name. Can't we change shovel damage? (this is client sided, first function when the zombie spawns second function when he dies)

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...