Arma 3 Scripting

setFlagOwner

  • Global argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · also in Object Manipulation · Markdown · JSON · original wiki page

Description

Sets flag owner. When owner is set to objNull or any object other than a unit of class man or logic, flag is returned to the flagpole. A flag owned by a logic has no visual representation.

Syntax

flag setFlagOwner owner

Parameters:

Returns: Nothing

Examples

Example 1

_flag1 setFlagOwner _soldier1;

Example 2

To return the flag back to the flag pole:

//Method 1: (set owner null)
flag _flagCarrier setFlagOwner objNull;
//Method 2: (set the flag mast as the owner)
flag _flagCarrier setFlagOwner flag _flagCarrier;

See also

flag · flagOwner · setFlagSide · setFlagTexture · flagSide · flagTexture · forceFlagTexture · getForcedFlagTexture

Community notes

Bdfy

Since flags can not be owned by vehicles, use "flag setFlagOwner driver tank1" or "flag1 setFlagOwner tank1D" to assign the flag to the vehicle's driver. The second method will only work if tank1 is the name of a unit, not a variable refering to it. True for OFP&Arma