Detecting a player accelerating
#1

How can i detect if a player is accelerating?
I was thinking of detecting his keys to see if he's pressing W using GetPlayerKeys, but the wiki says you cannot do this anymore:
Reply
#2

Have you tried: VEHICLE_ACCELERATE?
Reply
#3

How can i use that?
Reply
#4

Keystatechange callback and use vars is one way. I have done this method before.
Reply
#5

The wiki says you can't detect directional keys, but found out i could still detect if the player is using KEY_SPRINT, by the directional keys it's not WASD, only the arrows.
But thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)