XPiXel Posted August 14, 2011 Author Share Posted August 14, 2011 The title says it all.How do you disable player movement?Thank you. Link to comment Share on other sites More sharing options...
erkro1 Posted August 14, 2011 Share Posted August 14, 2011 CanMoveNow (only works client side)You can set it false or true (when its false player can't move) Link to comment Share on other sites More sharing options...
Rithy58 Posted August 14, 2011 Share Posted August 14, 2011 @Erwin:> CanMoveNow (only works client side)> > You can set it false or true (when its false player can't move)What do you mean only work on client side?When you try to move, the client doesn't show that you're moving while the server are getting the moving packets and everyone else in the game see you moving?Sincerely,Rithy Link to comment Share on other sites More sharing options...
Yxxe Posted August 14, 2011 Share Posted August 14, 2011 Write in a variable which exits out of the procedure which handles player movement. (Client side) You can also do this server side (when a specific event is triggered), but you'll have to make sure you send a packet to the client disabling the movement keys like I explained earlier. Failure to do this will keep the movement keys enabled and will make the player stutter forward and back on the spot, seeing as server side the player is frozen. Link to comment Share on other sites More sharing options...
quintensky Posted August 14, 2011 Share Posted August 14, 2011 why would you want to do that? Link to comment Share on other sites More sharing options...
Yxxe Posted August 14, 2011 Share Posted August 14, 2011 @quintensky:> why would you want to do that?I've coded player dialogues, which give players a bit of knowledge about a dungeon, or whatever. They players talk to each other and "enlighten" the gamer to a particular danger. In this case, I freeze the player movement until the player dialogue has finished.![](http://i801.photobucket.com/albums/yy294/Adrammelech_2009/Chat_System_Final.png) Link to comment Share on other sites More sharing options...
quintensky Posted August 15, 2011 Share Posted August 15, 2011 ahhhhh niice :)lightning could you pm me a rlly small tutrial on how to make woodcutting level and such :D:D:D:D that would be kinda (rlly, seriously) awesome, Link to comment Share on other sites More sharing options...
XPiXel Posted August 15, 2011 Author Share Posted August 15, 2011 Ah. Thank you…Solved! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now