flag: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|FLAG]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|FLAG]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|FLAG]]
[[Category:Scripting Commands ArmA|FLAG]]


| ofp |= Game name


<h2 style="color:#000066">'''flag ''unit'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Returns the flag the unit is carrying. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''flag''' unit |= Syntax


'''unit:''' [[Object]]
|p1= unit: [[Object]] |= Parameter 1


'''Type of returned value:'''
| [[Object]] - 
Returns the flag. If the unit carries no flag, [[objNull]] is returned. |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_flag = flag soldier</pre> |= Example 1
____________________________________________________________________________________________


[[Object]]
| [[flagOwner]] |= See also


'''Description:'''
}}


If unit has a flag, flag is returned.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


If not, [[objNull]] is returned.
<!-- Note Section END -->
</dl>


 
<h3 style="display:none">Bottom Section</h3>
'''Example:'''
[[Category:Scripting Commands|FLAG]]
 
[[Category:Scripting Commands OFP 1.96|FLAG]]
_flutter = '''flag''' [[player]]
[[Category:Scripting Commands OFP 1.46|FLAG]]
[[Category:Scripting Commands ArmA|FLAG]]

Revision as of 00:12, 2 August 2006

Hover & click on the images for description

Description

Description:
Returns the flag the unit is carrying.
Groups:
Uncategorised

Syntax

Syntax:
flag unit
Parameters:
unit: Object
Return Value:
Object - Returns the flag. If the unit carries no flag, objNull is returned.

Examples

Example 1:
_flag = flag soldier

Additional Information

See also:
flagOwner

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

Bottom Section