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 16:51, 9 February 2007

Introduced with Operation Flashpoint version 1.001.00
Hover & click on the images for descriptions

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

See also:
westeastresistancecivilian
Groups:
Uncategorised

Notes

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

Notes

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

Bottom Section