FlightControl-Master / MOOSE

Mission Object Oriented Scripting Environment (MOOSE) for lua mission scripting design in DCS World
http://flightcontrol-master.github.io/MOOSE/
GNU General Public License v3.0
291 stars 98 forks source link

SET_ZONE:FilterFunction is not working #2173

Closed Sci-fer closed 2 months ago

Sci-fer commented 2 months ago

It seems FilterFunction is not working, at least for SET_ZONE:

local set = SET_ZONE:New():FilterFunction(
    function()
        env.info('*** FilterFunction is running! ***') -- It doesn't execute!
    end
):FilterOnce()

Repository version

commit f531fdaa7055bd56bd3afb8a03857833d7c3122b (HEAD -> master, origin/master, origin/HEAD)
Author: Applevangelist <post@tniedermeier.com>
Date:   Thu Aug 29 10:25:13 2024 +0200

    #RANGE less noise
Applevangelist commented 2 months ago

I might have blissfully ignored to add it to the isInclude function

Applevangelist commented 2 months ago

Should be ok now - https://github.com/FlightControl-Master/MOOSE/commit/2c192fba30adf7a209a669c8c3225e201d05b09a