setFlagSide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
(27 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.97]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46]]
[[Category:Scripting Commands ArmA]]


back to [[Scripting_Reference#S|COMREF]]
| ofp |= Game name


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


|arg= local |Multiplayer Arguments=


'''Operand types:'''
|eff= global |Multiplayer Effects=
____________________________________________________________________________________________


'''flag:''' [[Object]]
| Sets flag [[Side]]. A flag may be taken by any unit that is enemy to the side that owns the flag. Just like with [[setFlagTexture]], if the command executed where unit is [[local]] effect of the command will be global and [[JIP]] compatible.|DESCRIPTION=
____________________________________________________________________________________________


'''side:''' [[Side]]
| flag '''setFlagSide''' side |SYNTAX=


'''Type of returned value:'''
|p1= flag: [[Object]] |PARAMETER1=
|p2= side: [[Side]] |PARAMETER2=


[[Nothing]]
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_flag1 [[setFlagSide]] [[east]];</code> |EXAMPLE1=


'''Description:'''
|x2= Capturable OPFOR flag:<code>[[private]] _flag = "FlagPole_F" [[createVehicle]] [[position]] [[player]];
_flag [[setFlagTexture]] "\A3\Data_F\Flags\Flag_CSAT_CO.paa";
_flag [[setFlagSide]] [[east]];</code> |EXAMPLE2=
____________________________________________________________________________________________


Set '''flag side'''.
| [[flag]], [[flagOwner]], [[setFlagOwner]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO=


}}


'''Example:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


flag1 '''setFlagSide''' east
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETFLAGSIDE]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETFLAGSIDE]]
[[Category:Scripting Commands OFP 1.46|SETFLAGSIDE]]
[[Category:Scripting Commands ArmA|SETFLAGSIDE]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 12:13, 5 August 2019

Hover & click on the images for description

Description

Description:
Sets flag Side. A flag may be taken by any unit that is enemy to the side that owns the flag. Just like with setFlagTexture, if the command executed where unit is local effect of the command will be global and JIP compatible.
Groups:
Uncategorised

Syntax

Syntax:
flag setFlagSide side
Parameters:
flag: Object
side: Side
Return Value:
Nothing

Examples

Example 1:
_flag1 setFlagSide east;
Example 2:
Capturable OPFOR flag:private _flag = "FlagPole_F" createVehicle position player; _flag setFlagTexture "\A3\Data_F\Flags\Flag_CSAT_CO.paa"; _flag setFlagSide east;

Additional Information

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

Notes

Bottom Section