Difference between isBlocked() and isObstacle()?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
MrChoke
Posts: 324
Joined: Sat Oct 25, 2014 7:20 pm

Difference between isBlocked() and isObstacle()?

Post by MrChoke »

Does anybody know the difference between these two map functions? So far they seem to both be the same value when I examine a square.
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Difference between isBlocked() and isObstacle()?

Post by petri »

isObstacle just checks for obstacles (those with Obstacle or DynamicObstacle components). isBlocked() also checks for obstacles, walls and elevation edges.
Post Reply