---
name: "BIN_fnc_setIDWMapDrawPatternIndex"
type: function
status: ok
groups: ["IDWMap"]
arma3_since: "1.94"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIN_fnc_setIDWMapDrawPatternIndex
revid: 364344
updated: 2024-05-06T10:34:40Z
---

# BIN_fnc_setIDWMapDrawPatternIndex

*Function · IDWMap · Arma 3 v1.94*

## Description

Sets map draw pattern

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

## Syntax

*syntax inferred from the function header*

```sqf
arg call BIN_fnc_setIDWMapDrawPatternIndex
```

**Parameters:**

- `arg` — NUMBER - pattern: 0 - triangles, 1 - diamonds, 2 - squares, 3 - diamonds overlapped

**Returns:** BOOL - true on success

## Examples

### Example 1

```sqf
// set on the fly
3 call BIN_fnc_setIDWMapDrawPatternIndex; OR [3] call BIN_fnc_setIDWMapDrawPatternIndex;
// set from config
call BIN_fnc_setIDWMapDrawPatternIndex; OR [] call BIN_fnc_setIDWMapDrawPatternIndex;
```

## 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:
    Sets map draw pattern

Parameter(s):
    NUMBER - pattern: 0 - triangles, 1 - diamonds, 2 - squares, 3 - diamonds overlapped

Returns:
    BOOL - true on success

Example:
    // set on the fly
    3 call BIN_fnc_setIDWMapDrawPatternIndex; OR [3] call BIN_fnc_setIDWMapDrawPatternIndex;
    // set from config
    call BIN_fnc_setIDWMapDrawPatternIndex; OR [] call BIN_fnc_setIDWMapDrawPatternIndex;
*/
```

<sub>Source: [BI Community Wiki — BIN fnc setIDWMapDrawPatternIndex](https://community.bistudio.com/wiki/BIN_fnc_setIDWMapDrawPatternIndex) (revision 364344).</sub>
