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")
 
(37 intermediate revisions by 4 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 |= Arguments in MP
|game3= arma1
|version3= 1.00


|eff= |= Effects in MP
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| Returns the owner of a flag. |= Description
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| [[Object]] <nowiki>=</nowiki> '''flagOwner''' flag |= Syntax
|game6= tkoh
|version6= 1.00


|p1= flag: [[Object]] |= Parameter 1
|game7= arma3
|version7= 0.50


| [[Object]] - 
|arg= global
The person or vehicle that owns the flag is returned. If used on anything else than a flag, the returned value is [[objNull]].
<br>
If the flag is on its pole, the return value is NULL.
<br>
If the flagowner is dead, the return value is the name of the soldier model. |= Return value
____________________________________________________________________________________________
 
|x1= <code>_person = [[flagOwner]] _flagOne;</code> |= Example 1
____________________________________________________________________________________________


| [[Flag Textures]], [[flag]], [[setFlagOwner]], [[setFlagSide]], [[setFlagTexture]] |= See also
|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.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|FLAGOWNER]]
[[Category:Scripting Commands OFP 1.46|FLAGOWNER]]
[[Category:Scripting Commands ArmA|FLAGOWNER]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{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