marty000123 Posted February 25, 2017 Share Posted February 25, 2017 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
MIKI785 Posted February 25, 2017 Share Posted February 25, 2017 What value does WEAPON_SHOVEL have? Link to comment
marty000123 Posted February 25, 2017 Author Share Posted February 25, 2017 I dunno, thought it was the name of the gun. Link to comment
marty000123 Posted February 25, 2017 Author Share Posted February 25, 2017 Nervermind, fixed. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now