setFlagSide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| ofp |= Game name
| ofp |Game name=


|1.00|= Game version
|1.00|Game version=


|arg= local |= Arguments in MP
|arg= local |Multiplayer Arguments=


|eff= global |= Effects in MP
|eff= global |Multiplayer Effects=
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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
| 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=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


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


|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> |= Example 2
_flag [[setFlagSide]] [[east]];</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[flag]], [[flagOwner]], [[setFlagOwner]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[forceFlagTexture]], [[Flag Textures]] |= See also
| [[flag]], [[flagOwner]], [[setFlagOwner]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO=


}}
}}
Line 45: Line 45:
[[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 ArmA|SETFLAGSIDE]]
[[Category:Scripting Commands Armed Assault|SETFLAGSIDE]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 20:38, 3 June 2020

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