Jump to content

Delete one blacklist of zone


Pudge

Recommended Posts

Hi, need a little help. How can I remove one blacklist (without removing other blacklists) by comment or directly vector3?

I tried using add session blacklist, than ClearBlacklistOfCurrentProductSession but it delete entire blacklist list anyway.

Link to comment
Share on other sites

  • Pudge changed the title to Delete one blacklist of zone

Hi, try

        wManager.wManagerSetting.GetListZoneBlackListed().RemoveAll(z => z.Comment == "comment to remove");
        // or
        wManager.wManagerSetting.GetListZoneBlackListed().RemoveAll(z => z.GetPosition().DistanceTo(new Vector3(1, 2, 3)) < 0.5);

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...