Page 1 of 1

Detecting when player is pressing w,a,s, or d.

PostPosted: Sat Sep 01, 2012 13:02
by Neuromancer
Is there a way to detect when the player is pressing w,a,s, or d. I'm not looking for up or down movement (space or e) I just want to detect when player is pressing w,a,s, or d in lua.

PostPosted: Sat Sep 01, 2012 13:19
by PilzAdam
Neuromancer wrote:Is there a way to detect when the player is pressing w,a,s, or d. I'm not looking for up or down movement (space or e) I just want to detect when player is pressing w,a,s, or d in lua.

Nope, there isnt.

PostPosted: Sat Sep 01, 2012 13:29
by Neuromancer
PilzAdam wrote:Nope, there isnt.

Is there any way to tell if they are moving?

PostPosted: Sat Sep 01, 2012 14:14
by PilzAdam
Neuromancer wrote:
PilzAdam wrote:Nope, there isnt.

Is there any way to tell if they are moving?

Save their position and check changes in a globalstep.