11-14-2010, 09:30 PM
Pages: 1 2
11-14-2010, 10:04 PM
SetPlayerRunSpeedMul(0);
This will make them unable to move.
If you want them to move at normal speed change it back to 1.
This will make them unable to move.
If you want them to move at normal speed change it back to 1.
11-15-2010, 06:18 AM
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)
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, 10:49 AM
(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
11-15-2010, 12:11 PM
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-16-2010, 05:34 PM
(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.
11-16-2010, 06:20 PM
Have you tried using
SetPlayerActive(false);
EDIT: That prevents looking around as well, as i just figured. But it could be a start.
SetPlayerActive(false);
EDIT: That prevents looking around as well, as i just figured. But it could be a start.
11-16-2010, 06:39 PM
@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.
@Chilton:
Yes but he should dont walk but can look around.
11-17-2010, 02:07 AM
Too bad theres not a SetWalkActive.
Edit: Would it work to have a prop active inside the player so hes stuck?
Edit: Would it work to have a prop active inside the player so hes stuck?
11-17-2010, 06:51 AM
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.
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