Lineaxe Posted May 28, 2020 Posted May 28, 2020 (edited) 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 May 28, 2020 by Lineaxe format text errors
Lineaxe Posted May 28, 2020 Author Posted May 28, 2020 I guess the real question here , after all that , is how do you know what zone is it using in the class method ForEachStaticInZone
OzDeaDMeaT Posted June 7, 2022 Posted June 7, 2022 Did you ever solve this? CPU: i9-12900K @ 4.9Ghz M/B: MSI MEG z690 Ace RAM: 128GB Video Card: MSI RTX 4090 Suprim Liquid X VR: Varjo Aero
Recommended Posts