flagOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "Flag Textures" to "Flag Textures")
 
(48 intermediate revisions by 12 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


| Returns the owner of a flag. |= Description
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| [[Object#Unit|Unit]] <nowiki>=</nowiki> '''flagOwner''' anyFlag |= Syntax
|game4= arma2
|version4= 1.00


|p1= anyFlag: [[Object]] |= Parameter 1
|game5= arma2oa
|version5= 1.50


| [[Object]] - 
|game6= tkoh
The person or vehicle that owns the flag is returned. If used on anything else than a flag, the returned value is [[objNull]] |= Return value
|version6= 1.00
____________________________________________________________________________________________
 
|x1= <pre>_person = flagowner _flagOne</pre> |= Example 1
____________________________________________________________________________________________


| [[flag]] |= See also
|game7= arma3
|version7= 0.50


}}
|arg= global
 
|eff= global
 
|gr1= Flags
 
|descr= Returns the global owner of a flag. A getter for [[setFlagOwner]]. Note that owner of a flag is [[Object]] rather than [[Number]], as how it is usually with other [[owner]] commands
 
|s1= [[flagOwner]]  flag
 
|p1= flag: [[Object]]


<h3 style="display:none">Notes</h3>
|r1= [[Object]] - the person or vehicle that owns the flag is returned. If used on anything else than a flag, the returned value is [[objNull]]. If the flag is on its pole, the return value is NULL. If the flagowner is dead, the return value is the name of the soldier model
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_person = flagOwner _flagOne;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[setFlagOwner]] [[:Category:Flag Textures|Flag Textures]]
[[Category:Scripting Commands|FLAGOWNER]]
}}
[[Category:Scripting Commands OFP 1.96|FLAGOWNER]]
[[Category:Scripting Commands OFP 1.46|FLAGOWNER]]
[[Category:Scripting Commands ArmA|FLAGOWNER]]
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:27, 23 March 2024

Hover & click on the images for description

Description

Description:
Returns the global owner of a flag. A getter for setFlagOwner. Note that owner of a flag is Object rather than Number, as how it is usually with other owner commands
Groups:
Flags

Syntax

Syntax:
flagOwner flag
Parameters:
flag: Object
Return Value:
Object - the person or vehicle that owns the flag is returned. If used on anything else than a flag, the returned value is objNull. If the flag is on its pole, the return value is NULL. If the flagowner is dead, the return value is the name of the soldier model

Examples

Example 1:
_person = flagOwner _flagOne;

Additional Information

See also:
setFlagOwner 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