"guard_layer" question

Discussion in 'Mod Support' started by liquius, June 25, 2014.

  1. liquius

    liquius Well-Known Member

    Messages:
    731
    Likes Received:
    482
    Does anyone know if there is a string for "guard_layer" that covers both land and air?
  2. wondible

    wondible Post Master General

    Messages:
    3,279
    Likes Received:
    2,084
    I looked at Anchor and Avenger, and they both say WL_Orbital, so I'm not even sure what that value means. Another example: the 58772 missile tower could also target land, but guard_layer was WL_Air. The weapons have a target_layers property that looks more promising.
  3. liquius

    liquius Well-Known Member

    Messages:
    731
    Likes Received:
    482
    The problem is that I can't find one that combines both air and land.

    What I am working on is a fighter that can hunt both air and ground. It is able to shoot both air and ground, however it only actively seeks one of them depending on whether its WL_LandHorizontal or WL_Air. As far as I know there are no units that currently hunt both land and air. That's why I am asking.
  4. wondible

    wondible Post Master General

    Messages:
    3,279
    Likes Received:
    2,084
    So this would be, for instance, for area attacks?
  5. liquius

    liquius Well-Known Member

    Messages:
    731
    Likes Received:
    482
    This has to do with the guard radius. When unit A enters within the guard radius of unit B, then unit B will move to attack unit A. However if unit A happens to be an aircraft and unit B has its guard layer set to WL_LandHorizontal, it won't react.

    What I want to do is have unit C react to both units D and E. However unit D is an aircraft and unit E is a land unit. With what I currently know, I can't make unit C react to both unit D and E. It can be D or E, but not both.
    wondible likes this.

Share This Page