Quote:
|
Originally Posted by ApothiX
onwall(2) detects if a tile is blocking. onwater(2) detects if a tile is water. onwall and onwater check a single tile, while onwall2 and onwater2 check an area of tiles.
|
onwater/onwater2 checks for lava and water tiles
onwall/onwall2 checks for anything that should be blocking according to the default system (includes players/npcs).
onwall(x,y) tells you if the specified coordinate is blocked
onwall2(x,y,w,h) tells you if there is anything blocking within the specified area