Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   built in block (https://forums.graalonline.com/forums/showthread.php?t=55512)

falco10291029 09-26-2004 09:39 PM

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.....

Tolnaftate2004 09-26-2004 09:57 PM

So, add 8 to the options and instead of using a timeout, use if (movementfinished)

Admins 09-26-2004 10:28 PM

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.

falco10291029 09-27-2004 02:28 AM

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.