Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve building filtering #360

Merged
merged 1 commit into from
Feb 18, 2024

Conversation

rekterakathom
Copy link
Contributor

When merged this pull request will: Add new conditions to building filtering in fnc_findBuildings

  1. Describe what this pull request will do
  • Add two new conditions to the building filter: alive check and hidden check
  • Alive check because when buildings get destroyed in Arma, the old building disappears and a ruin is spawned on top, so technically there are now two buildings. The invisible "dead" building and the newly spawned ruin version of the building. The ruin cannot "die" so this will simply filter out the "ghost" building.
  • Hidden check because in rare circumstances mission makers might hide buildings, and we don't want to care about those.
  1. Each change in a separate line
  • Add alive check to remove unnecessary "ghost" buildings from the array
  • Add hidden check to remove invisible buildings from the array

Ignore destroyed buildings and hidden buildings
@jokoho48 jokoho48 added this to the 2.6.1 milestone Oct 4, 2023
@nk3nny nk3nny merged commit 02bf940 into nk3nny:master Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants