everytick, globalvar"free"=0:> use acceleration towards player
on collision with obstacles, trigger once:> set custommovement disable, set globalvar"free"=1, pathfind to "player last position"
On collision with "player last position", globalvar"free"=1, trigger once:> set globalvar"free"=0, set custommovement enabled