disable random events when crossing obstacles