Difference between revisions of "setFlagSide"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#|[A-Z]+))?\]\] " to "")
 
(41 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Command|= Comments
+
{{RV|type=command
____________________________________________________________________________________________
 
  
| ofp |= Game name
+
| ofp
  
|1.00|= Game version
+
|1.00
____________________________________________________________________________________________
 
  
| Set flag side. |= Description
+
|arg= local
____________________________________________________________________________________________
 
  
| flag '''setFlagSide''' side |= Syntax
+
|eff= global
  
|p1= flag: [[Object]] |= Parameter 1
+
|gr1= Flags
|p2= side: [[Side]] |= Parameter 2
 
  
| [[Nothing]] |= Return value
+
| 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
 +
 
 +
|p1= flag: [[Object]]
 +
|p2= side: [[Side]]
 +
 
 +
| [[Nothing]]
 
   
 
   
|x1= <pre>_flag1 setFlagSide east</pre> |= Example 1
+
|x1= <code>_flag1 [[setFlagSide]] [[east]];</code>
____________________________________________________________________________________________
 
  
| |= See also
+
|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>
  
 +
|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>
+
{{GameCategory|arma1|Scripting Commands}}
[[Category:Scripting Commands|SETFLAGSIDE]]
+
{{GameCategory|arma2|Scripting Commands}}
[[Category:Scripting Commands OFP 1.96|SETFLAGSIDE]]
+
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands OFP 1.46|SETFLAGSIDE]]
+
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands ArmA|SETFLAGSIDE]]
 

Latest revision as of 00:29, 25 March 2021

Hover & click on the images for descriptions

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.

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

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