---
name: "forcedMap"
type: command
status: ok
groups: ["Map", "Interaction"]
arma3_since: "1.62"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/forcedMap
revid: 377695
updated: 2026-01-02T09:03:18Z
---

# forcedMap

*Command · Map, Interaction · Arma 3 v1.62*

## Description

Returns if map was forced by using [forceMap](../commands/forceMap.md) command or [openMap](../commands/openMap.md) command with force option

## Syntax

```sqf
forcedMap
```

**Returns:** [Array](../topics/Array.md) with [forceMapForced, openMapForced]
- forceMapForced: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if map was forced with [forceMap](../commands/forceMap.md) command
- openMapForced: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if map was forced with [openMap](../commands/openMap.md) command.

## Examples

### Example 1

```sqf
_forceMapForced = forcedMap select 0;
_openMapForced = forcedMap select 1;
```

## See also

[openMap](../commands/openMap.md) · [forceMap](../commands/forceMap.md) · [showMap](../commands/showMap.md) · [visibleMap](../commands/visibleMap.md) · [shownMap](../commands/shownMap.md)

<sub>Source: [BI Community Wiki — forcedMap](https://community.bistudio.com/wiki/forcedMap) (revision 377695).</sub>
