Jump to content

Check if a tile is traversable in a certain direction (IsoFlagType.collideN not enough)


blindcoder

Recommended Posts

Hi again.

 

For a mod I'm currently writing I want to check if a square can be traversed in a direction.

Currently, I do this:

 

local cell = getCell();local sq = cell:getGridSquare(x, y, 0); -- Need ground floorif sq:getProperties():Is(IsoFlagType.collideN) then  -- do somethingend
This works fine for walls, but unfortunately not for windows, doors and probably also not for player-built walls.

Is there a reliable way to check if a tile can be traversed in a certain direction?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...