setFlagSide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - " {2,}\}\}" to " }}")
(39 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|SETFLAGSIDE]]
{{Command
[[Category:Scripting Commands OFP 1.96|SETFLAGSIDE]]
[[Category:Scripting Commands OFP 1.46|SETFLAGSIDE]]
[[Category:Scripting Commands ArmA|SETFLAGSIDE]]


| ofp


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


|arg= local


'''Operand types:'''
|eff= global


'''flag:''' [[Object]]
|gr1= Flags


'''side:''' [[Side]]
| 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.


'''Type of returned value:'''
| flag '''setFlagSide''' side


[[Nothing]]
|p1= flag: [[Object]]
|p2= side: [[Side]]


'''Description:'''
| [[Nothing]]
 
|x1= <code>_flag1 [[setFlagSide]] [[east]];</code>


Set flag side.
|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>


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


'''Example:'''
[[Category:Scripting Commands|SETFLAGSIDE]]
 
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
flag1 '''setFlagSide''' east
[[Category:Scripting Commands OFP 1.96|SETFLAGSIDE]]
[[Category:Scripting Commands OFP 1.46|SETFLAGSIDE]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{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