setFlagSide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "Flag Textures" to "Flag Textures")
 
(83 intermediate revisions by 14 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|S]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.97|S]]
[[Category:Scripting Commands OFP 1.46|S]]
[[Category:Scripting Commands ArmA|S]]


back to [[Scripting_Reference#S|COMREF]]
|game1= ofp
|version1= 1.00


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


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''flag:''' [[Object]]
|game5= arma2oa
|version5= 1.50


'''side:''' [[Side]]
|game6= tkoh
|version6= 1.00


'''Type of returned value:'''
|game7= arma3
|version7= 0.50


[[Nothing]]
|arg= local


'''Description:'''
|eff= global


Set '''flag side'''.
|gr1= Flags


|descr= 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 [[Multiplayer Scripting#Locality|local]] effect of the command will be global and [[Multiplayer Scripting#Join In Progress|JIP]] compatible.


'''Example:'''
|s1= flag [[setFlagSide]] side


flag1 '''setFlagSide''' east
|p1= flag: [[Object]]
|p2= side: [[Side]]
 
|r1= [[Nothing]]
 
|x1= <sqf>_flag1 setFlagSide east;</sqf>
 
|x2= Capturable OPFOR flag:
<sqf>private _flag = "FlagPole_F" createVehicle position player;
_flag setFlagTexture "\A3\Data_F\Flags\Flag_CSAT_CO.paa";
_flag setFlagSide east;</sqf>
 
|seealso= [[flag]] [[flagOwner]] [[setFlagOwner]] [[setFlagTexture]] [[flagSide]] [[flagTexture]] [[setFlagAnimationPhase]] [[flagAnimationPhase]] [[forceFlagTexture]] [[getForcedFlagTexture]] [[:Category:Flag Textures|Flag Textures]]
}}

Latest revision as of 16:27, 23 March 2024

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:
flag flagOwner setFlagOwner setFlagTexture flagSide flagTexture setFlagAnimationPhase flagAnimationPhase forceFlagTexture getForcedFlagTexture 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