Posts: 49
Threads: 6
Joined: Nov 2011
Reputation:
0
It detects SPACE, not W. W is for slow running ( not fast ).
I think it cant be anything else but KEY_UP for default settings of W, I just want to know how to use it or how to make it usable since currently it doesnt work for me.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Movement keys do not trigger OnPlayerKeyStateChange. If you want to check you need OnPlayerUpdate. However, you cannot detect the 'W' key specifically, you can only detect KEY_UP. KEY_UP happens to be bound to Z in my game. (Azerty keyboard).
Posts: 5
Threads: 0
Joined: Jul 2013
Reputation:
0
Use GetPlayerKeys. UpDown part will detect W and S keys. Using OnPlayerKeyStateChange won't work as it doesn't register directional keys
Posts: 49
Threads: 6
Joined: Nov 2011
Reputation:
0
Why people would change controls? Default controls are much easier to use than edited ones. Anyways, I've changed my mind, how could I make stock to detect if player has moved/ran or smthing..
Posts: 49
Threads: 6
Joined: Nov 2011
Reputation:
0
08.08.2013, 10:06
(
Последний раз редактировалось Harry_F.; 08.08.2013 в 10:54.
)
Ppl, are you gonna argue with me or help. Okay I made a misstake. I apology, not everyone has WASD, but I still want to detect if player has moved if I cant detect the keys they press to move...
EDIT: I just found one by Misco and it works perfectly, solved my problem. Thanks anyways for your time.. You may close this.