Jump to content

Remove all border walls and border fences on the Syria map


EasyEB

Recommended Posts

Would this be possible via scripting? Anyone tried it?

 

I'm facing massive problems with the border walls with units not being able to pass them. I know that's the point of a border wall, but...

Link to comment
Share on other sites

I can remove for example houses with this script

Quote

 

 local sphere = trigger.misc.getZone('zone')
 
 local newPoint = {x = sphere.point.x, y = land.getHeight({x = sphere.point.x, y = sphere.point.z}), z = sphere.point.z}
 local volS = {
 id = world.VolumeType.SPHERE,
  params = {
   point = newPoint,
   radius = sphere.radius
  }
  
 }

do
local ifFound = function(foundItem, val) -- generic search for all scenery
if foundItem:getTypeName() == 'BORDERFENCE' then
foundItem:destroy()
end

end
world.searchObjects(Object.Category.SCENERY, volS, ifFound)
end

 

 

but the border fences for some reason are not removed.

Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...