setFlagOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(see also)
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set flag owner. When owner is set to [[objNull]] or any object other than a unit of class [[Models_%26_Classnames:_CfgVehicles_-_Class_Man|man]] or [[Game_Logic|logic]], flag is returned to the flagpole.
| Sets flag owner. When owner is set to [[objNull]] or any object other than a unit of class [[Models_%26_Classnames:_CfgVehicles_-_Class_Man|man]] or [[Game_Logic|logic]], flag is returned to the flagpole. A flag owned by a logic has no visual representation.|= Description
<br>
A flag owned by a logic has no visual representation.|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 28: Line 26:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Flag Textures]], [[flag]], [[flagOwner]], [[setFlagSide]], [[setFlagTexture]] |= See also
| [[flag]], [[flagOwner]], [[setFlagSide]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[Flag Textures]] |= See also


}}
}}

Revision as of 22:17, 24 September 2015

Hover & click on the images for description

Description

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.
Groups:
Uncategorised

Syntax

Syntax:
flag setFlagOwner owner
Parameters:
flag: Object
owner: Object
Return Value:
Nothing

Examples

Example 1:
_flag1 setFlagOwner _soldier1;

Additional Information

See also:
flagflagOwnersetFlagSidesetFlagTextureflagSideflagTextureFlag Textures

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

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

Bottom Section