flagOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - "Flag Textures" to "Flag Textures")
 
(14 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


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


| 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=
|game6= tkoh
|version6= 1.00


| '''flagOwner''' flag |SYNTAX=
|game7= arma3
|version7= 0.50


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


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


| [[flag]], [[setFlagOwner]], [[setFlagSide]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO=
|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]]
 
|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
 
|x1= <sqf>_person = flagOwner _flagOne;</sqf>
 
|seealso= [[setFlagOwner]] [[:Category:Flag Textures|Flag Textures]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[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 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