Build_Advanced_Dugout() new /turf/walls/wall2blocker(locate(src.x,src.y -1,src.z)) var/mob/Defenser/I = new /mob/Defenser(locate(src.x,src.y,src.z)) new /turf/walls/roofspecil(locate(src.x,src.y,src.z)) new /turf/walls/roofspecil(locate(src.x,src.y +1,src.z)) new /turf/walls/roofspecil(locate(src.x +1,src.y +1,src.z)) new /turf/walls/roofspecil(locate(src.x +1,src.y,src.z)) new /turf/walls/roofspecil(locate(src.x -1,src.y,src.z)) new /turf/walls/wall2blocker(locate(src.x -1,src.y -1,src.z)) new /turf/walls/wall2blocker(locate(src.x +1,src.y -1,src.z)) new /turf/walls/roofspecil(locate(src.x -1,src.y +1,src.z))
new /area/nopoeplecangothrough(locate(src.x -1,src.y,src.z)) new /area/nopoeplecangothrough(locate(src.x,src.y -1,src.z)) new /area/nopoeplecangothrough(locate(src.x,src.y +1,src.z)) new /area/nopoeplecangothrough(locate(src.x +1,src.y +1,src.z)) new /area/nopoeplecangothrough(locate(src.x +1,src.y,src.z)) new /area/nopoeplecangothrough(locate(src.x -1,src.y -1,src.z)) new /area/nopoeplecangothrough(locate(src.x +1,src.y -1,src.z)) new /area/nopoeplecangothrough(locate(src.x -1,src.y +1,src.z)) I.side = usr.side usr.x += 2
|
That should help for checking for something special. Also I don't know if you create areas the way you're doing. I think you need to set the areas like
T.loc = locate(/area/somearea) //Where T is some turf you're setting the area forThis is because a turf is contained within an area and not the other way around. But let me go verify this as I haven't played with this myself.