IS there a way i can temporarily disable the movment of my character(like so they cannot use the arrow keys), but still can move when called by walk()?
and how?
ID:271011
![]() Dec 9 2006, 3:55 am
|
|
![]() Dec 9 2006, 4:02 am
|
|
For the love of god, use the forum's search function.
|
Kaioken wrote:
For the love of god, use the forum's search function. wow you can at least help the poor guy... client i think you'll need returns there, not sure as of now, no, I'm not going to test it, but you can. |
Animay3 wrote:
Kaioken wrote: The "poor guy" can at least SEARCH before making a new topic; there are tons of topics on this and he could of found the answer there. Even merely searching for "disable movement" would probably bring up a few relevant topics with solutions. That might initially seem harsh, but think about the poor guy[s] that need to answer the same question over and over all the time. >_> And by the way, your code isn't even what he wants. :P |
Kaioken wrote:
Animay3 wrote: oh well, just trying to help em', but your right he should've searched, but i always forget to search because when i do massive topics spam it haha, oh well, and that code i posted i found from a different topic concerning this, so.... |
Well, ideally, people (including you :P) should search before making new topics, because there are already topics that concern that question, so no need to make a new one. Also, it's faster than waiting until people reply to your new topic, too.
Don't worry about helping him wrong, though. You're not THAT off, apparently you just misunderstood what he wants - that code disables all moving by the movement commands permanently - I gather he wants to temporairly disable them, when he wants, not all the time. OK, the answer...for that case, you would add a variable to the mob (or client, but you will probably wanna use the mob) and set it when you want to disable movement, then override the Move() proc and stop it if that var is set to the blocked value.Example code: mob/var/move_allowed = 1 |