The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades.
×
- 0
Prevent user to move during unitwalk
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Mathew
Hello,
I'm tring to use the "unitwalk" script command to force the player to move to X/Y position, however I'd like to avoid he click somewhere else and move, then it will "break" my intention to reach one specific coordinates XY.
I was thinking to use setpcblock, however it locks the movement at all, so unitwalk doesn't move the player, would it be any other way to "lock" the user to move during the "unitwalk"?
Here's the simple code, I'd like during unitwalk, to not allow the user click somewhere to move until he reach the 107/104 cell.
`test,114,104,4 script Test2 -1,{
setpcblock PCBLOCK_MOVE,1;
unitwalk getcharid(3),107,104;
end;
OnInit:
end;
}`
Thanks for help!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.