![]() |
Player dont walk? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Player dont walk? (/thread-5444.html) Pages:
1
2
|
Player dont walk? - Everlone - 11-14-2010 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. RE: Player dont walk? - Gamemakingdude - 11-14-2010 SetPlayerRunSpeedMul(0); This will make them unable to move. If you want them to move at normal speed change it back to 1. RE: Player dont walk? - Everlone - 11-15-2010 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) RE: Player dont walk? - Hooumeri - 11-15-2010 (11-15-2010, 06:18 AM)Everlone Wrote: There are no one can help? 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 RE: Player dont walk? - Everlone - 11-15-2010 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. RE: Player dont walk? - HakePT - 11-16-2010 (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. RE: Player dont walk? - Chilton - 11-16-2010 Have you tried using SetPlayerActive(false); EDIT: That prevents looking around as well, as i just figured. But it could be a start. RE: Player dont walk? - Everlone - 11-16-2010 @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. RE: Player dont walk? - house - 11-17-2010 Too bad theres not a SetWalkActive. Edit: Would it work to have a prop active inside the player so hes stuck? RE: Player dont walk? - jens - 11-17-2010 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. |