Frictional Games Forum (read-only)

Full Version: Player dont walk?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
what i must do that the player only can look but don´t walk?

for all things exist scripts. Don´t jump, don´t crouch ect but not for walk.
SetPlayerRunSpeedMul(0);

This will make them unable to move.

If you want them to move at normal speed change it back to 1.
There are no one can help?
I think it too it should be work with Gamemakingdude´s script. But it don´t work.
(SetPlayerRunSpeedMul(0); or SetPlayerMoveSpeedMul(0); won´t be work)
(11-15-2010, 06:18 AM)Everlone Wrote: [ -> ]There are no one can help?
I think it too it should be work with Gamemakingdude´s script. But it don´t work.
(SetPlayerRunSpeedMul(0); or SetPlayerMoveSpeedMul(0); won´t be work)

Of course you could just spawn static objects (the wrong way facing the player) arond the player, that way it cannot physically move out of the position.. if that is good enough

EDIT: Also you would be able to see your surroundings
the problem is the walk animation, i will make scene where the player can look at left and right but not around and that he dont walk.
(11-15-2010, 12:11 PM)Everlone Wrote: [ -> ]the problem is the walk animation, i will make scene where the player can look at left and right but not around and that he dont walk.

Blocking the players movement isn't a good idea but there are ways.

One is to make the player levitate a bit, with a already public script so he can't move.
You can set the player speed to 0, check the scripting funcs if it isn't working.
Just remember to set normal speed after.
A more crude way is to block the player in place with invisible blocks.
Have you tried using

SetPlayerActive(false);


EDIT: That prevents looking around as well, as i just figured. But it could be a start.
@HakePT: I try it on antoher way and i finished it. But i try your way at later ^^ i have some ideas and hope it work.

@Chilton:
Yes but he should dont walk but can look around.
Too bad theres not a SetWalkActive.
Edit: Would it work to have a prop active inside the player so hes stuck?
SetPlayerXSpeedMul should work just fine and it is also possible to disable crouch with a script, setcrouchdisabled or something like that, look it up in the wiki.

If SetPlayerXSpeedMul did not work for you before, chances are that the function did not trigger at all, so add a debug message to make sure something really happens when you want it to.
Pages: 1 2