flag: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "Flag Textures" to "Flag Textures")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp
|version1= 1.00


|1.00|Game version=
|game2= ofpe
|version2= 1.00


|arg= global |Multiplayer Arguments=
|game3= arma1
|version3= 1.00


|eff= |Multiplayer Effects=
|game4= arma2
|version4= 1.00


|gr1= Flags |GROUP1=
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| Returns the original flag pole of the flag the unit is carrying. |DESCRIPTION=
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00


| [[flag]] unit |SYNTAX=
|game7= arma3
|version7= 0.50


|p1= unit: [[Object]] |PARAMETER1=
|arg= global


| [[Object]] - Flag pole object the flag belongs to. If the unit carries no flag, [[objNull]] is returned. |RETURNVALUE=
|gr1= Flags
____________________________________________________________________________________________
 
|x1= <code>_flag = [[flag]] _soldier;</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[flagOwner]], [[setFlagOwner]], [[setFlagSide]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO=
|descr= Returns the original flag pole of the flag the unit is carrying.
}}
 
|s1= [[flag]] unit
 
|p1= unit: [[Object]]


<h3 style="display:none">Notes</h3>
|r1= [[Object]] - flag pole object the flag belongs to. If the unit carries no flag, [[objNull]] is returned.
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_flag = flag _soldier;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[flagOwner]] [[setFlagOwner]] [[setFlagSide]] [[setFlagTexture]] [[flagSide]] [[flagTexture]] [[setFlagAnimationPhase]] [[flagAnimationPhase]] [[forceFlagTexture]] [[getForcedFlagTexture]] [[:Category:Flag Textures|Flag Textures]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 15:27, 23 March 2024

Hover & click on the images for description

Description

Description:
Returns the original flag pole of the flag the unit is carrying.
Groups:
Flags

Syntax

Syntax:
flag unit
Parameters:
unit: Object
Return Value:
Object - flag pole object the flag belongs to. If the unit carries no flag, objNull is returned.

Examples

Example 1:
_flag = flag _soldier;

Additional Information

See also:
flagOwner setFlagOwner setFlagSide setFlagTexture flagSide flagTexture setFlagAnimationPhase flagAnimationPhase forceFlagTexture getForcedFlagTexture Flag 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