Example #1
0
 public static bool TryFindRandomPawnExitCell(Pawn searcher, out IntVec3 result)
 {
     return(CellFinder.TryFindRandomEdgeCellWith((IntVec3 c) => !searcher.Map.roofGrid.Roofed(c) && c.Walkable(searcher.Map) && searcher.CanReach(c, PathEndMode.OnCell, Danger.Some, false, TraverseMode.ByPawn), searcher.Map, 0f, out result));
 }