---
name: "BIN_fnc_getTXScanDrawData"
type: function
status: ok
groups: ["TXScan"]
arma3_since: "1.94"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIN_fnc_getTXScanDrawData
revid: 309486
updated: 2022-05-05T12:06:18Z
---

# BIN_fnc_getTXScanDrawData

*Function · TXScan · Arma 3 v1.94*

## Description

Returns draw data for given TXScan

> [!NOTE]
> This content is exclusive to the Arma 3 Contact Expansion.

## Syntax

*syntax inferred from the function header*

```sqf
[param0] call BIN_fnc_getTXScanDrawData
```

**Parameters:**

- `param0` — 0: STRING - scan name

**Returns:** ARRAY in format [iconData, polygonData, triangleData, rectangleData, isDefaultPolygon] where:
    iconData: ARRAY - position in format [x,y,0]
    polygonData: ARRAY - array of polygon vertices, where each vertex is in format [x,y,0]
    triangleData: ARRAY - array of triangle vrtices, where each vertex is in format [x,y,0]
    rectangleData: ARRAY - bounding rectangle in format [center, a, b, angle]
    isDefaultPolygon: BOOL - if a scan polygon has not yet been calculated, this will be true

## Examples

### Example 1

```sqf
"myScan" call BIN_fnc_getTXScanDrawData
```

## Function header

The comment at the top of the function's file in the game; this page's params, syntax, returns, examples, description come from it.

```sqf
/*
    Killzone_Kid

Description:
    Returns draw data for given TXScan

Parameter(s):
    0: STRING - scan name

Returns:
    ARRAY in format [iconData, polygonData, triangleData, rectangleData, isDefaultPolygon] where:
        iconData: ARRAY - position in format [x,y,0]
        polygonData: ARRAY - array of polygon vertices, where each vertex is in format [x,y,0]
        triangleData: ARRAY - array of triangle vrtices, where each vertex is in format [x,y,0]
        rectangleData: ARRAY - bounding rectangle in format [center, a, b, angle]
        isDefaultPolygon: BOOL - if a scan polygon has not yet been calculated, this will be true

Example:
    "myScan" call BIN_fnc_getTXScanDrawData
*/
```

<sub>Source: [BI Community Wiki — BIN fnc getTXScanDrawData](https://community.bistudio.com/wiki/BIN_fnc_getTXScanDrawData) (revision 309486).</sub>
