Difference between revisions of "side"

From Bohemia Interactive Community
Jump to navigation Jump to search
(format usage)
m (add. see also, categorized)
Line 11: Line 11:
 
Once dead, a unit will be on the [[civilian]] side.  
 
Once dead, a unit will be on the [[civilian]] side.  
  
The returned strings, if used in conjunction with a [[format]] statement, are: "WEST", "EAST", "GUER" & "CIV".
+
When used in conjunction with a [[format]] statement (<tt>hint [[format]]["%1",side player]</tt>), the returned strings are: <tt>"[[west|WEST]]"</tt>, <tt>"[[east|EAST]]"</tt>, <tt>"[[resistance|GUER]]"</tt> or <tt>"[[civilian|CIV]]"</tt>.
 
|= Description
 
|= Description
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
Line 25: Line 25:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| |= See also
+
| [[west]], [[east]], [[resistance]], [[civilian]] |= See also
  
 
}}
 
}}
Line 42: Line 42:
 
[[Category:Scripting Commands OFP 1.46|SIDE]]
 
[[Category:Scripting Commands OFP 1.46|SIDE]]
 
[[Category:Scripting Commands ArmA|SIDE]]
 
[[Category:Scripting Commands ArmA|SIDE]]
 +
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]

Revision as of 17:51, 9 February 2007

Introduced with Operation Flashpoint version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Returns the side of unit. Once dead, a unit will be on the civilian side. When used in conjunction with a format statement (hint format["%1",side player]), the returned strings are: "WEST", "EAST", "GUER" or "CIV".

Syntax

Syntax:
side unit
Parameters:
unit: Object or Group
Return Value:
Side

Examples

Example 1:
? (side player == west) : hint "You are on the West side."

Additional Information

Multiplayer:
-
See also:
westeastresistancecivilian

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bdfy
In OFP 1.96 side return value for empty vehicles will be civilian.

Bottom Section