Author Topic: Sit while moving  (Read 1014 times)

(server-sided)
Is there a way to force a player to sit down -- and even if they move, they'll still be sitting down?

I've tried some stuff using .setActionThread("sit", 1) which seems to be cancelled when the player moves. I've also tried looping that function but that will only cause them to sit down when they finish moving.

I've also tried to apply it to AIPlayers, but it is cancelled when they move as well.
« Last Edit: November 04, 2011, 10:33:20 AM by Port »

Perhaps you could change the player datablock to NoMovePlayer first then make them sit.
DL that, add the player type into the force sit command before they sit and see what happens, maybe it'll work.

No-Move Player + Force Sit = Always sitting, no movement.
But what I'm looking for is being able to sit down while moving.

The sit isn't cancelled, its just once the player starts moving, he plays the walk forward animation

figure out a way to disable the walking animation, and it should work

Soba's right I think. Try packaging Player::PlayThread to prevent the run/walk animation from playing while the player is supposed to be sitting.

The only problem with that is that the run/walk animation is not a thread animation. It doesn't use ::playThread.

I'm pretty sure it is, I've triggered it manually before for screenshots.

Code: [Select]
findClientByName("Port").player.playerThread("run",0);

I'm pretty sure it is, I've triggered it manually before for screenshots.

Code: [Select]
findClientByName("Port").player.playerThread("run",0);
It's not through playThread, though you can trigger it through playThread.

Added new problem.

Nevermind: That was me being silly.
setTimeScale(x);
commandToAll('timeScale', x);
« Last Edit: November 04, 2011, 10:33:08 AM by Port »