setFlagOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#))?\]\] " to "")
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
Line 33: Line 33:


<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<dt class="note">[[User:Bdfy|Bdfy]]</dt>
<dt class="note">[[User:Bdfy|Bdfy]]</dt>
<dd class="note">
<dd class="note">
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
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


<!-- Note Section END -->


</dl>
</dl>

Revision as of 01:42, 6 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
FlagsObject Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
flag: Object
owner: Object
Return Value:
Return value needed

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
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