Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   onwall function just for tiles? (https://forums.graalonline.com/forums/showthread.php?t=134267268)

BlueMelon 10-17-2012 10:09 PM

onwall function just for tiles?
 
The onwall function returns true if the (x,y) is on a wall tile OR on a NPC with a shape and is blocking.

Is there a function that detects only if (x,y) is on a wall tile and not the NPCs?

I know I could find near npcs and compare the distance, but when I tried that, it seemed quite buggy...

0PiX0 10-17-2012 10:18 PM

Check if tiletype(x,y) == 22 (blocking)

Crow 10-17-2012 10:19 PM

There should be functions called wall() and wall2() or something similar in Era's -MoveSystem, where I emulated onwall() and onwall2() functionality for two special tile types. You can probably use that as a base.

BlueMelon 10-17-2012 10:20 PM

Ah didn't think of using tiletype(). Thanks!


All times are GMT +2. The time now is 09:14 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.