Draken35 Posted May 22, 2023 Posted May 22, 2023 (edited) world.searchObjects function not returning Statics Objects for Syria. When I try this script: Quote local zone = trigger.misc.getZone('test') local foundObjs = {} local volS = { id = world.VolumeType.SPHERE, params = { point = zone.point, radius = zone.radius } } local ifFound = function(foundItem, val) foundObjs[#foundObjs + 1] = foundItem return true end world.searchObjects(Object.Category.STATIC, volS, ifFound) trigger.action.outText('FOUND: '..#foundObjs..' STATIC OBJECTS IN THE ZONE' , 15 , false) in Syria, it returns 0 objects, however, if I run it in Caucasus, South Atlantic or Normandy 2, it returns the expected number of objects. Test missions attached. WS_test_SA.miz WS_test_Syria.miz WS_test_Caucasus.miz WS_test_N2.miz Edited May 22, 2023 by Draken35
Recommended Posts