side: Difference between revisions

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

Hover & click on the images for description

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".
Groups:
Uncategorised

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

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

Notes

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

Bottom Section