Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Player dont walk?
Everlone Offline
Member

Posts: 178
Threads: 11
Joined: Oct 2010
Reputation: 2
#1
Player dont walk?

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.

[Image: 555233.jpg]
(This post was last modified: 11-14-2010, 09:36 PM by Everlone.)
11-14-2010, 09:30 PM
Find
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#2
RE: Player dont walk?

SetPlayerRunSpeedMul(0);

This will make them unable to move.

If you want them to move at normal speed change it back to 1.

Rep if like me or im helpful or you love my stories!
Stephanos house
11-14-2010, 10:04 PM
Find
Everlone Offline
Member

Posts: 178
Threads: 11
Joined: Oct 2010
Reputation: 2
#3
RE: Player dont walk?

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)

[Image: 555233.jpg]
11-15-2010, 06:18 AM
Find
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#4
RE: Player dont walk?

(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
(This post was last modified: 11-15-2010, 10:49 AM by Hooumeri.)
11-15-2010, 10:49 AM
Find
Everlone Offline
Member

Posts: 178
Threads: 11
Joined: Oct 2010
Reputation: 2
#5
RE: Player dont walk?

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.

[Image: 555233.jpg]
11-15-2010, 12:11 PM
Find
HakePT Offline
Junior Member

Posts: 49
Threads: 1
Joined: Sep 2010
Reputation: 0
#6
RE: Player 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.
11-16-2010, 05:34 PM
Find
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#7
RE: Player dont walk?

Have you tried using

SetPlayerActive(false);


EDIT: That prevents looking around as well, as i just figured. But it could be a start.
(This post was last modified: 11-16-2010, 06:20 PM by Chilton.)
11-16-2010, 06:20 PM
Find
Everlone Offline
Member

Posts: 178
Threads: 11
Joined: Oct 2010
Reputation: 2
#8
RE: Player dont walk?

@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.

[Image: 555233.jpg]
11-16-2010, 06:39 PM
Find
house Offline
Member

Posts: 195
Threads: 11
Joined: Oct 2010
Reputation: 1
#9
RE: Player dont walk?

Too bad theres not a SetWalkActive.
Edit: Would it work to have a prop active inside the player so hes stuck?
(This post was last modified: 11-17-2010, 02:12 AM by house.)
11-17-2010, 02:07 AM
Find
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#10
RE: Player dont walk?

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.
11-17-2010, 06:51 AM
Website Find




Users browsing this thread: 1 Guest(s)