Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO 2.0]Disable Player Movement


XPiXel
 Share

Recommended Posts

@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

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

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...