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

I need a function which can reliably tell me whether a player is sitting or alternatively when they stand up.

I tried multiple different methods, but none of them work without fail.


Does anyone know a way of doing this reliably?

I thought of a hacky way to do this.

I thought of a hacky way to do this.
thanks for your help

If you're always using a standard playertype you can compare the eyePoints of the player to the position

If you're always using a standard playertype you can compare the eyePoints of the player to the position
That's really clever! Thank you for your knowledge, sir.

Package playThread and set a variable that was the last threadplayed then do a check if it's coming from sit to something else.

There doesn't seem to be a thread played for when a player sits down/stands up.

I mean. When some's thread is set to sit set a var to true
the next time that person has his thread set, check if it isn't true and that var is true. Then call the function

I mean. When some's thread is set to sit set a var to true
the next time that person has his thread set, check if it isn't true and that var is true. Then call the function

Sitting doesn't call the playThread function.

Sitting doesn't call the playThread function.
are you sure? because when I called findclientbyname(Brian).player.playThread("sit",0); it seemed to work.

are you sure? because when I called findclientbyname(Brian).player.playThread("sit",0); it seemed to work.

Doesn't work both ways - jumping doesn't call playThread even though you can play it through that function.

are you sure? because when I called findclientbyname(Brian).player.playThread("sit",0); it seemed to work.

Servercmdsit doesn't call the playThread function either.

........ package serverCmdSit?

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

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





we can trace that, right?