Author Topic: Function For Whether A Player Is Sitting/Stands Up  (Read 1193 times)

That's what I was thinking, but it wouldn't know whether someone stood up, only if they sat down

what about if they sit and then they press a key that would make them stand up, like WASD or SPACE

what about if they sit and then they press a key that would make them stand up, like WASD or SPACE

That's client-sided, this has to be server-sided.

The best way I have found for testing this is that a player will transition from sitting to standing if:
 - the player is moving at a certain speed (upwards velocity seems to be excluded)
 - is within a certain distance from the ground