Skip to content

Means to detect if body exists #2587

@Dunbaratu

Description

@Dunbaratu

For people writing scripts meant to be played in multiple different modded solar systems (i.e. RSS versus Stock versus JNSQ versus GPP), it would be nice if a script could safely query (without crashing) whether or not a body exists. Right now I don't see a means to do that.

i.e. if you do BODY("Mun") and there is no such body as Mun, the script crashes, but the script has no way to test with if BODYEXISTS("Mun") first, since no such test exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSomething new (not a bug fix) is being requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions