![]() |
move() blockcheck?
What exactly is this parameter and how is it used?
|
This is something from a project Dusty made once.
PHP Code:
Semms like there is no parameter for that. Just using onwall2(). |
It's built-in wall checking for an object when move is called.
You use it like this: move(dx, dy, time, 4); If you want blockcheck and eventwhendone (onMovementFinished) you do: move(dx, dy, time, 4 + 8); Personally I have had no pleasant experiences with it at least on the serverside and can't really recommend it then again I haven't used it in ages. |
I believe that once it hits a wall, it will set the NPC back to the position it had before the move() call; so it's quite useless.
|
Quote:
My method simply scans for the nearest wall, and makes sure the move() does not exceed that space. |
All times are GMT +2. The time now is 05:06 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.