![]() |
built in block
i have just recently realized that move comes with a built in block, but if in a timeout loop, like with a monster, it seems to be working, but after the timeout warps to where it was trying to move to.....
|
So, add 8 to the options and instead of using a timeout, use if (movementfinished)
|
But it is not recommended to use that, problem is that the blocking behaviour is often slightly different on server and client, so you will often see npcs warping, because they stop on the client but can move on the server because the blocking object is not blocking or already moved away.
It is better to use onwall(x,y) and onwall2(x,y,width,height) before calling the "move" command. |
as seen in anopther thread stefan, that hasnt worked for me. I geuss i can try movement finished but i doubt it will help much.
|
| All times are GMT +2. The time now is 12:54 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.