Author Topic: Check for W or S being pressed  (Read 2453 times)

I am not sure this is possible. I would like someone to clarify, and maybe give some alternatives.
« Last Edit: February 03, 2013, 07:27:26 PM by tommybricksetti »

client sided or server sided?
for client sided I think you could parent moveforward and movebackward

for client sided I think you could parent moveforward and movebackward

Since he wants to check it, you would just use $mvForwardAction and $mvBackwardAction.

Since he wants to check it, you would just use $mvForwardAction and $mvBackwardAction.
Oh my god, thank you!

wait that is clientside right? How do I do it server side? or can i?

How do I do it server side? or can i?

The only thing you can try to do is check velocity. There is no callback or way to check that they're holding W/S.

Don't quote me on this, but just throwing out this idea. What if he used Euler to axis, and velocity as well.

Angles have nothing to do with movement, so yeah your best bet would be to check velocity


guess im making in a singleplayer only mod for now :P


Angles have nothing to do with movement, so yeah your best bet would be to check velocity

No wait. What if he were to get the eye point, and get the location at a certain distance in front of the player. And if the player walks toward that direction, then wouldn't that work?

What I'm making is the first 30 seconds of this: http://www.youtube.com/watch?v=QvMHNHOeUs0
I highly doubt you can make this nicely in blockland.
Also you can't just check the velocity.
Holding W does not mean I am actually moving forward

I highly doubt you can make this nicely in blockland.
Also you can't just check the velocity.
Holding W does not mean I am actually moving forward
Then what do you suggest? At least it will detect that you are holding W if you ARE moving. So that solution is better than nothing.

Why doesn't he just make it so the player needs to join a client-sided mod to play, which will send the information to the server of him holding W.