Maybe by detecting the player's PRESSED key as KEY_SPACE or KEY_SPRINT under OnPlayerKeyStateChange. for detecting help browse WIKI .
Posts: 298
Threads: 24
Joined: Oct 2012
Reputation:
0
Try setting a run animation when they are pressing 'KEY_SPRINT'.
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
It doesnt work on foot, as the player is "attached" to the ground. It works when he leaves the ground (e.g. jumping) but while running he wont get faster with SetPlayerVelocity, he might just get some damage.
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
At least in a proper way it is impossible. All you could do is to add a bit of z velocity, so the player is jumping a bit, then you can set the speed with SetPlayerVelocity. But i guess that would look ugly and make controlling hard.