setFlagSide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "JIP" to "JIP")
m (Text replacement - " {2,}\}\}" to " }}")
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{Command
____________________________________________________________________________________________


| ofp |Game name=
| ofp


|1.00|Game version=
|1.00


|arg= local |Multiplayer Arguments=
|arg= local


|eff= global |Multiplayer Effects=
|eff= global


|gr1= Flags |GROUP1=
|gr1= Flags
____________________________________________________________________________________________


| 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 [[Multiplayer Scripting#Join In Progress|JIP]] compatible.|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 [[Multiplayer Scripting#Join In Progress|JIP]] compatible.
____________________________________________________________________________________________


| flag '''setFlagSide''' side |SYNTAX=
| flag '''setFlagSide''' side


|p1= flag: [[Object]] |PARAMETER1=
|p1= flag: [[Object]]
|p2= side: [[Side]] |PARAMETER2=
|p2= side: [[Side]]


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


|x2= Capturable OPFOR flag:<code>[[private]] _flag = "FlagPole_F" [[createVehicle]] [[position]] [[player]];
|x2= Capturable OPFOR flag:<code>[[private]] _flag = "FlagPole_F" [[createVehicle]] [[position]] [[player]];
_flag [[setFlagTexture]] "\A3\Data_F\Flags\Flag_CSAT_CO.paa";
_flag [[setFlagTexture]] "\A3\Data_F\Flags\Flag_CSAT_CO.paa";
_flag [[setFlagSide]] [[east]];</code> |EXAMPLE2=
_flag [[setFlagSide]] [[east]];</code>
____________________________________________________________________________________________
 
| [[flag]], [[flagOwner]], [[setFlagOwner]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO=


| [[flag]], [[flagOwner]], [[setFlagOwner]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETFLAGSIDE]]
[[Category:Scripting Commands|SETFLAGSIDE]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETFLAGSIDE]]
[[Category:Scripting Commands OFP 1.96|SETFLAGSIDE]]
[[Category:Scripting Commands OFP 1.46|SETFLAGSIDE]]
[[Category:Scripting Commands OFP 1.46|SETFLAGSIDE]]
[[Category:Scripting Commands Armed Assault|SETFLAGSIDE]]
{{GameCategory|arma1|Scripting Commands}}
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma2|Scripting Commands}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 01:35, 19 January 2021

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:
Flags

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