Jump to content

not finding mission created static objects in a zone using following syntax


Lineaxe

Recommended Posts

I am testing away using these 3 lines.:noexpression:

zoneAirPort = ZONE:New("AirPortZone" )-- find a zone I created in mission editor

 

 

-- this line works , still testing away..

objectinzoneSET:ForEachStaticNotInZone(zoneAirPort,function (StaticA) StaticA:MessageToAll("n.i.z.",5) BASE:T({"StaticA" .." N.I.Z."}) end ) -- this line works , -- set already created above this

 

 

 

 

objectinzoneSET:ForEachStaticInZone(function (StaticA) StaticA:MessageToAll("*I.Z*",5) BASE:T({"StaticA" .."*I.Z*"}) end ) --- does not work

 

also this class member function above does not accept a zone so it can decide if anything is in it or not ... so I thought it must be looking as the last ZONE object that was set somewhere??

ForEachStaticCompletelyInZone(zoneAirPort,function (StaticA) StaticA:MessageToAll("*I.Z*",5) BASE:T({"StaticA" .."*I.Z*"}) end ) -- this line works as well for alive objects I don't think for dead ones


Edited by Lineaxe
format text errors
Link to comment
Share on other sites

  • 2 years later...
  • Recently Browsing   0 members

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