---
name: "forceFlagTexture"
type: command
status: ok
groups: ["Flags"]
arma3_since: "1.70"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/forceFlagTexture
revid: 348626
updated: 2023-11-08T13:46:04Z
---

# forceFlagTexture

*Command · Flags · Arma 3 v1.70*

Locality: arguments **global** · effect **global**

## Description

Forces a flag texture onto a flag carrier (unit, vehicle or flag pole).
No flag holder is required. If `""` is used as texture, the texture is removed.
This will override regularly owned flags.
This type of flag texture cannot be retrieved using [flagTexture](../commands/flagTexture.md), but [getForcedFlagTexture](../commands/getForcedFlagTexture.md).

> [!IMPORTANT]
> Forced flag texture is an additional flag texture, which visually overrides original flag texture and therefore is very expensive to simulate, so use the functionality sparingly.

## Syntax

```sqf
object forceFlagTexture texture
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - vehicle, unit or flag pole
- `texture`: [String](../topics/String.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
player forceFlagTexture "\A3\Data_F\Flags\Flag_red_CO.paa";
```

## See also

[getForcedFlagTexture](../commands/getForcedFlagTexture.md) · Arma 3: Flag Textures

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