---
name: "BIN_fnc_createTXScan"
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_createTXScan
revid: 309609
updated: 2022-05-05T12:07:40Z
---

# BIN_fnc_createTXScan

*Function · TXScan · Arma 3 v1.94*

## Description

Creates a scan with the name defined as class in CfgTXScans or from given params. If name doesn't exists in config and params are not provided, default scan is created which could be tweaked later

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

## Syntax

*syntax inferred from the function header*

```sqf
[param0, param0, param1, param2, param3, param4] call BIN_fnc_createTXScan
```

**Parameters:**

- `param0` — 0: STRING - "" create every scan from config
  or
- `param0` — 0: STRING - scan name
- `param1` — 1: ARRAY (Optional) - TX position
- `param2` — 2: NUMBER (Optional) - scan angle
- `param3` — 3: NUMBER (Optional) - scan precision
- `param4` — 4: ARRAY (Optional) - scan polygon

**Returns:** BOOL - false on error

## Examples

### Example 1

```sqf
"MyScan" call BIN_fnc_createTXScan
"" call BIN_fnc_createTXScan - creates every scan from config
["MyScan", [1,2,3], 20, 0.1] call BIN_fnc_createTXScan - creates every scan from config
```

## 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:
    Creates a scan with the name defined as class in CfgTXScans or from given params.
    If name doesn't exists in config and params are not provided, default scan is created which could be tweaked later

Parameter(s):
    0: STRING - "" create every scan from config
    or
    0: STRING - scan name
    1: ARRAY (Optional) - TX position
    2: NUMBER (Optional) - scan angle
    3: NUMBER (Optional) - scan precision
    4: ARRAY (Optional) - scan polygon

Returns:
    BOOL - false on error

Examples:
    "MyScan" call BIN_fnc_createTXScan
    "" call BIN_fnc_createTXScan - creates every scan from config
    ["MyScan", [1,2,3], 20, 0.1] call BIN_fnc_createTXScan - creates every scan from config
*/
```

<sub>Source: [BI Community Wiki — BIN fnc createTXScan](https://community.bistudio.com/wiki/BIN_fnc_createTXScan) (revision 309609).</sub>
