side: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#U|COMREF]]
back to [[Scripting_Reference#S|COMREF]]


<h2 style="color:#000066">'''side ''''unit''</h2>
<h2 style="color:#000066">'''side ''''unit''</h2>
Line 13: Line 13:
'''Description:'''
'''Description:'''


Side of unit.
'''Side''' of unit.
''Note:'' This does not change the side of the unit.
 
'''Note:''' This does not change the '''side''' of the unit.
 


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

Revision as of 11:20, 17 April 2006

back to COMREF

side 'unit

Operand types:

unit: Object or Group

Type of returned value:

Side

Description:

Side of unit.

Note: This does not change the side of the unit.


Example:

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