Difference between revisions of "setFlagSide"

From Bohemia Interactive Community
Jump to navigation Jump to search
(example)
m
Line 26: Line 26:
 
|x2= Capturable OPFOR flag:<code>[[local]] _flag = "FlagPole_F" [[createVehicle]] [[position]] [[player]];
 
|x2= Capturable OPFOR flag:<code>[[local]] _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]; |= Example 2
+
_flag [[setFlagSide]] [[east]];</code> |= Example 2
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  

Revision as of 00:35, 26 September 2015

Introduced with Operation Flashpoint version 1.001.00Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network
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:local _flag = "FlagPole_F" createVehicle position player; _flag setFlagTexture "\A3\Data_F\Flags\Flag_CSAT_CO.paa"; _flag setFlagSide east;

Additional Information

See also:
flagflagOwnersetFlagOwnersetFlagTextureflagSideflagTextureFlag Textures

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section