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

Removal of structures #2463

Closed
alpeshpatel09 opened this issue Apr 26, 2024 · 8 comments · Fixed by #2475
Closed

Removal of structures #2463

alpeshpatel09 opened this issue Apr 26, 2024 · 8 comments · Fixed by #2475

Comments

@alpeshpatel09
Copy link

Version information:

  • Platform: Windows 11
  • Version: 24.04
  • Build/commit: [e.g. f08479f]

Describe the bug
A clear and concise description of what the bug is.

Unable to remove structures such as Pylons

Expected behaviour
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@LeftofZen
Copy link
Contributor

I thought you couldn't remove those structures in vanilla, and there's a flag in the building object to mark destructible/non destructible objects; can you check if this is the case?

@alpeshpatel09
Copy link
Author

Hi LeftofZen

Please can you advise where I can check the flag as unsure of what file/s I need to check or screen.

Thank you

@AaronVanGeffen
Copy link
Member

It is expected for the player to not be able to remove these structures, as their company doesn't own them. Conversely, they can be removed while in the scenario editor.

@LeftofZen
Copy link
Contributor

Hi LeftofZen

Please can you advise where I can check the flag as unsure of what file/s I need to check or screen.

Thank you

Ah sorry I just wanted you to confirm the behaviour in-game. You can see the flag in the object editor:
image

@LeftofZen
Copy link
Contributor

Thinking about this, we could certainly add a very basic cheat that lets the user ignore the "Indestructible" flag

@AaronVanGeffen
Copy link
Member

We wouldn't even need a new one. With the removeBuilding game command implemented, we could just make it take the 'sandbox mode' flag into account.

@LeftofZen
Copy link
Contributor

Oh yeah good point, that's definitely a better way to do it

@alpeshpatel09
Copy link
Author

Thank you for the updates - good idea to use the current sandbox mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants