kinyoshi Posted August 15, 2013 Share Posted August 15, 2013 been toying with it for six hours now. still doesn't work, I've changed it a-lot since I started. I know it's wrong, because it doesn't work but I don't know what else to try. Any help would be greatly appreciated. -- ================================================ ---- Speedwalk Mod ---- created by Kinyoshi ---- ================================================ --SpeedwalkMod = {}SpeedwalkMod.version = "0.0.1";SpeedwalkMod.author = "Kinyoshi";SpeedwalkMod.modName = "Speedwalk Mod";-- -------------------------------------------------- Functions-- ----------------------------------------------------- Prints out the mod info on startup.function SpeedwalkMod.init()print("Mod Loaded: " .. SpeedwalkMod.modName .. " by " .. SpeedwalkMod.author .. " (v" .. SpeedwalkMod.version ..")");endfunction Speedwalk()local level = getPerkLevel(PerkFactory.Perks.Sprinting);player:getStats():setFatigue(-1000.0);if level == 1 thenreturn 1000;elseif level == 2 thenreturn 2000;elseif level == 3 thenreturn 4000;elseif level == 4 thenreturn 6000;elseif level == 5 thenreturn 100000;elsereturn 250;endendEvents.OnGameBoot.Add(SpeedwalkMod.init);Hook.Run.Add(Speedwalk); Link to comment Share on other sites More sharing options...
dida55 Posted August 15, 2013 Share Posted August 15, 2013 I have no idea how to do it, but I would be very grateful if you could get this working! Don't give up! Link to comment Share on other sites More sharing options...
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