# Flags (scripting commands)

- [flag](../../commands/flag.md): Returns the original flag pole of the flag the unit is carrying.
- [flagAnimationPhase](../../commands/flagAnimationPhase.md): Returns flag position on the flag pole.
- [flagOwner](../../commands/flagOwner.md): Returns the global owner of a flag. A getter for setFlagOwner. Note that owner of a flag is Object rather than Number, as how it is usually with other owner commands
- [flagSide](../../commands/flagSide.md): Returns Side of the local instance of the flag. A getter for setFlagSide.
- [flagTexture](../../commands/flagTexture.md): Returns texture of the local instance of the flag. A getter for setFlagTexture. It will not return flag textures applied using forceFlagTexture, use getForcedFlagTexture for that.
- [forceFlagTexture](../../commands/forceFlagTexture.md): 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.
- [getForcedFlagTexture](../../commands/getForcedFlagTexture.md): A getter for forceFlagTexture. Forced texture is different from your normal flag texture, which can be retrieved with flagTexture
- [setFlagAnimationPhase](../../commands/setFlagAnimationPhase.md): Sets flag position on the flag pole. To animate flag use BIS_fnc_animateFlag.
- [setFlagOwner](../../commands/setFlagOwner.md): 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.
- [setFlagSide](../../commands/setFlagSide.md): Sets flag Side. A flag may be taken by any unit that is enemy to the side that owns the flag.
- [setFlagTexture](../../commands/setFlagTexture.md): Sets flag texture.
