Problem description:
Eh i was wondering if anyone could show me a resource that could help me with the following:
allowing you to take over a npc and moving it (with keyboard)
i have a click movment code, but i think the keyboard movement would be more useful. anything for my problem would be greatly appreciated.
thanks in advanced.
ID:912656
![]() |
|
Albro1 wrote:
You can set the client's mob variable to the new mob. Keep in mind that doing this will call your current mob's Logout() and the new mob's Login(). iight thanks for the help. |
No problem! Remember to vote up the best response whenever you ask for help, so that the members who search for their problems before asking find answers easier!
|
It's easier to override client/Move() than each directional process individually, and also cuts down on redundant code.
|
You could also assign a variable to the client that stores the mob that you are controlling. Then in the client's movement procs(North(), South(), etc), you can check if you are controlling a mob. If you are, move that mob. If not, do the default action.