flagOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Text replacement - "Flag Textures" to "Flag Textures")
 
(27 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= global|Multiplayer Effects=
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| 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 |DESCRIPTION=
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| '''flagOwner''' flag |SYNTAX=
|game6= tkoh
|version6= 1.00


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


| [[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. |RETURNVALUE=
|arg= global
____________________________________________________________________________________________
 
|x1= <code>_person = [[flagOwner]] _flagOne;</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[flag]], [[setFlagOwner]], [[setFlagSide]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO=
|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 16: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