Jump to content

world.searchObjects function not returning Statics Objects for Syria.


Recommended Posts

Posted (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 by Draken35
  • Draken35 changed the title to world.searchObjects function not returning Statics Objects for Syria.
  • Recently Browsing   0 members

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