setFlagOwner: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
m (template:command argument fix) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| 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.|= | | 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= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| flag '''setFlagOwner''' owner |= | | flag '''setFlagOwner''' owner |SYNTAX= | ||
|p1= flag: [[Object]] |= | |p1= flag: [[Object]] |PARAMETER1= | ||
|p2= owner: [[Object]] |= | |p2= owner: [[Object]] |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_flag1 [[setFlagOwner]] _soldier1;</code> |= | |x1= <code>_flag1 [[setFlagOwner]] _soldier1;</code> |EXAMPLE1= | ||
|x2= To return the flag back to the flag pole:<code>//Method 1: (set owner null) | |x2= To return the flag back to the flag pole:<code>//Method 1: (set owner null) | ||
[[flag]] _flagCarrier [[setFlagOwner]] [[objNull]]; | [[flag]] _flagCarrier [[setFlagOwner]] [[objNull]]; | ||
//Method 2: (set the flag mast as the owner) | //Method 2: (set the flag mast as the owner) | ||
[[flag]] _flagCarrier [[setFlagOwner]] [[flag]] _flagCarrier;</code> |= | [[flag]] _flagCarrier [[setFlagOwner]] [[flag]] _flagCarrier;</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[flag]], [[flagOwner]], [[setFlagSide]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |= | | [[flag]], [[flagOwner]], [[setFlagSide]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO= | ||
}} | }} |
Revision as of 14:47, 7 April 2019
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
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;
Additional Information
- See also:
- flagflagOwnersetFlagSidesetFlagTextureflagSideflagTextureforceFlagTexturegetForcedFlagTextureFlag 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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters