Page 1 of 1

Disabling Helipads in CNC Map Rules

Posted: Mon Apr 24, 2017 4:44 am
by RadicalEdward2
Can helipads (HPAD) be disabled in a map's rules in CNC like they can in RA?

I tried using this:

Code: Select all

Rules:
    HPAD:
        Buildable:
            Prerequisites: ~disabled
And it crashed the game.
I wanted to update my remake of Field from Renegade to make it more like the original map without having to set the match to a lower tech level.

If anyone wants see what they can do, I attached the oramap file.

Posted: Wed Apr 26, 2017 2:55 am
by KOYK_GR
I think you can just remove the "Buildable" trait and you are ok

Posted: Wed Apr 26, 2017 8:21 pm
by RadicalEdward2
KOYK_GR wrote: I think you can just remove the "Buildable" trait and you are ok
I tried this:

Code: Select all

Rules:
    HPAD:
            Prerequisites: ~disabled
But removing Buildable removed the map from the list altogether.

Code: Select all

Rules:
    HPAD:
        Buildable: False
Crashed the game.

Posted: Wed Apr 26, 2017 11:55 pm
by Blackened
Make sure your indentations are correct. I did a quit test and it worked for me.

Posted: Thu Apr 27, 2017 6:20 am
by Murto the Ray

Code: Select all

Rules:
    HPAD:
        -Buildable:
This is how traits are removed throughout the OpenRA codebase. I don't know if your method works but this is how it's done everywhere else.

Posted: Fri Apr 28, 2017 5:03 pm
by RadicalEdward2
Ooooh! Okay! I see what happened. Blackened was right.
I forgot to skip a line before adding the Rules. So the Rules were bundled in with the actors.
Thanks guys!