With MapPosition you can easily check a given position if its in a wall, a bush or in a speific region.
(Note: on very first start of a map or after an update, the script will generate 2 files per map: _bushes & _walls, this process can take up to 15 seconds. In this time no scripts are working. Please reload the script on finish by pressing 2xF6)
API
--This will make the script use the lib, place it on top of the script require 'MapPositionGOS' --Functions-- MapPosition:inWall(position) ->returns true if a given position is in a wall ->position can be Vector2, Vector3, Object, Table MapPosition:inBush(position) ->returns true if a given position is in a bush ->position can be Vector2, Vector3, Object, Table (for regions look in the spoiler down here)
Examples
(This lib is automatically downloaded but if you want to see the source)
Soucre (raw)