---
name: "setFlagSide"
type: command
status: ok
groups: ["Flags"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setFlagSide
revid: 369359
updated: 2024-09-03T18:43:06Z
---

# setFlagSide

*Command · Flags · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

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

## Description

Sets flag [Side](../topics/Side.md). A flag may be taken by any unit that is enemy to the side that owns the flag. Just like with [setFlagTexture](../commands/setFlagTexture.md), if the command executed where unit is [local](../topics/Multiplayer_Scripting.md#locality) effect of the command will be global and [JIP](../topics/Multiplayer_Scripting.md#join-in-progress) compatible.

## Syntax

```sqf
flag setFlagSide side
```

**Parameters:**

- `flag`: [Object](../topics/Object.md)
- `side`: [Side](../topics/Side.md)

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

## Examples

### Example 1

```sqf
_flag1 setFlagSide east;
```

### Example 2

Capturable OPFOR flag:

```sqf
private _flag = "FlagPole_F" createVehicle position player;
_flag setFlagTexture "\A3\Data_F\Flags\Flag_CSAT_CO.paa";
_flag setFlagSide east;
```

## See also

[flag](../commands/flag.md) · [flagOwner](../commands/flagOwner.md) · [setFlagOwner](../commands/setFlagOwner.md) · [setFlagTexture](../commands/setFlagTexture.md) · [flagSide](../commands/flagSide.md) · [flagTexture](../commands/flagTexture.md) · [setFlagAnimationPhase](../commands/setFlagAnimationPhase.md) · [flagAnimationPhase](../commands/flagAnimationPhase.md) · [forceFlagTexture](../commands/forceFlagTexture.md) · [getForcedFlagTexture](../commands/getForcedFlagTexture.md)

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