Function GetUnitDefaultPropWindow

  • Returns a unit's default propulsion window angle in degrees.

    Parameters

    • whichUnit: Unit<UnitEventMap>

      The unit of which to return the default prop window.

    Returns number

    Note

    This native is the odd case in the asymmetric prop window API, since the other prop window natives use radians. Therefore, to reset a unit's prop window you need the explicit conversion, i.e. SetUnitPropWindow(u, GetUnitDefaultPropWindow(u) * bj_DEGTORAD).

Generated using TypeDoc