Skip to main content

DialogGetCharacterZone

Callable

  • DialogGetCharacterZone(C: Character, Zone: readonly [number, number, number, number], X: number, Y: number, Zoom: number, HeightRatio: number): [number, number, number, number]

  • Return the co-ordinates and dimensions of the asset group zone as it appears on screen


    Parameters

    • C: Character

      The character the zone is calculated for

    • Zone: readonly [number, number, number, number]

      The 4 part array of the rectangular asset zone: [X, Y, Width, Height]

    • X: number

      The starting X co-ordinate of the character's position

    • Y: number

      The starting Y co-ordinate of the character's position

    • Zoom: number

      The amount the character has been zoomed

    • HeightRatio: number

      The displayed height ratio of the character

    Returns [number, number, number, number]

    • The 4 part array of the displayed rectangular asset zone: [X, Y, Width, Height]