actionspd variable = current running speed?

That's quite simple.
Just make a PlayerThink hook and put p.actionspd = p.speed inside of it's function.
Make sure the function has p as it's argument.

Here's an example if that's hard to understand:
Lua:
//Make a new hook that runs code for each player constantly
addHook("PlayerThink", function(p)
    // Sets actionspd to the player's speed, duh
    // Using p.speed as actionspd makes the resulting action kind of weak, so I would recommend multiplying it by whatever factor you see fit as I did.
    p.actionspd = p.speed * 3
end)
 

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top